/* =========================================================
   Casa dos Sonhos — styles.css
   CSS Nesting moderno (nativo, sem pré-processador)
   Font-sizes < 1rem ajustadas para 1rem
   ========================================================= */

:root {
  --bone: #f6f5f1;
  --paper: #fffdf8;
  --sand: #ece9e0;
  --forest: #243b31;
  --forest-deep: #172a22;
  --ink: #222923;
  --muted: #5f665e;
  --line: #dcd9cf;
  --gold: #b68a55;
  --gold-soft: #ddc7a6;
  --gold-ink: #85602f;
  --sage: #6f7d72;
  --header-h: 82px;
  --bs-body-bg: var(--bone);
  --bs-body-color: var(--ink);
  --bs-body-font-family:
    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-font-sans-serif:
    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-border-color: var(--line);
  --bs-border-radius: 2px;
  --bs-link-color: var(--forest);
  --bs-link-hover-color: var(--gold-ink);
  --bs-secondary-color: var(--muted);
  --bs-emphasis-color: var(--forest);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--bs-body-font-family);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--gold-soft);
  color: var(--forest-deep);
}

img {
  max-width: 100%;
}
a {
  text-underline-offset: 3px;
}

h1,
h2,
h3,
.h-display {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: none !important;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.container,
.container-fluid {
  --bs-gutter-x: clamp(2.5rem, 5vw, 4rem);
  max-width: 1360px;
}

.row {
  --bs-gutter-x: clamp(1.4rem, 2.4vw, 2rem);
}

.section {
  padding-block: clamp(4rem, 8.5vw, 7.5rem);
}
.section-sm {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.bg-bone {
  background-color: var(--bone);
}
.bg-sand {
  background-color: var(--sand);
}
.bg-forest {
  background-color: var(--forest);
}

.text-forest {
  color: var(--forest) !important;
}
.text-muted-brand {
  color: var(--muted) !important;
}
.text-gold {
  color: var(--gold) !important;
}

.serif {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
}

/* =========================================================
   Marca e navegação
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1040;
  color: #fff;
  transition: color 0.3s ease;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(246, 245, 241, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
  }

  &.is-solid {
    color: var(--forest);

    &::before {
      opacity: 1;
    }

    .brand-mark {
      color: var(--gold-ink);
    }

    .menu-btn {
      border-color: var(--line);

      &:hover {
        background: var(--sand);
      }
    }
  }
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
  z-index: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-soft);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.015em;

  & small {
    margin-top: 0.32rem;
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.3;
    opacity: 0.66;
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.3rem);
  margin-inline: auto;
  padding-inline: 1rem;

  & a {
    position: relative;
    padding-block: 0.45rem;
    color: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.045em;
    text-decoration: none;
    white-space: nowrap;

    &::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      height: 1px;
      background: var(--gold);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.25s ease;
    }

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

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.9;

  &:hover {
    color: inherit;
    opacity: 1;
  }
}

.menu-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;

  &:hover,
  &:focus-visible {
    background: rgba(255, 255, 255, 0.14);
  }
}

/* Offcanvas (menu mobile) */
.offcanvas {
  --bs-offcanvas-width: min(430px, 100vw);
  background: var(--paper);
  color: var(--forest);

  .brand-mark {
    color: var(--gold-ink);
  }

  & .offcanvas-header {
    padding: 1.25rem clamp(1.25rem, 4vw, 2rem);
    border-bottom: 1px solid var(--line);
  }

  & .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 1.5rem clamp(1.25rem, 4vw, 2rem) 2rem;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;

    & a {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 1rem;
      padding: 1rem 0;
      border-bottom: 1px solid var(--line);
      color: var(--forest);
      font-family: "Instrument Serif", Georgia, serif;
      font-size: 2rem;
      line-height: 1.2;
      text-decoration: none;

      & span {
        font-family: "Manrope", sans-serif;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.16em;
        color: var(--muted);
      }

      &:hover {
        color: var(--gold-ink);
      }
    }
  }

  .offcanvas-contact {
    margin-top: auto;
    padding-top: 2rem;
    font-size: 1rem;
    color: var(--muted);

    & a {
      color: var(--forest);
      font-weight: 600;
    }
  }
}

/* =========================================================
   Tipografia editorial
   ========================================================= */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.6;
  text-transform: uppercase;

  &::before {
    content: "";
    flex: 0 0 auto;
    width: 2rem;
    height: 1px;
    background: var(--gold);
  }

  &.eyebrow-light {
    color: rgba(255, 255, 255, 0.72);

    &::before {
      background: var(--gold-soft);
    }
  }

  &.eyebrow-forest {
    color: var(--forest);
  }
}

.display-hero {
  margin: 0;
  color: #fff;
  font-size: clamp(3.5rem, 8.3vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.94;

  & em {
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--gold-soft);
  }
}

.section-title {
  margin: 0;
  color: var(--forest);
  font-size: clamp(2.45rem, 4.6vw, 4.15rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.03;

  & em {
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--sage);
  }

  &.section-title-light {
    color: #fff;

    & em {
      color: var(--gold-soft);
    }
  }
}

.lead-copy {
  font-size: clamp(1rem, 1.2vw, 1rem);
  line-height: 1.85;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid currentColor;
  color: var(--forest);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-decoration: none;
  transition:
    color 0.2s ease,
    gap 0.2s ease;

  &:hover {
    color: var(--gold-ink);
    gap: 0.8rem;
  }

  &.text-link-light {
    color: #fff;

    &:hover {
      color: var(--gold-soft);
    }
  }
}

/* =========================================================
   Botões
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.95rem 1.3rem;
  border-radius: 1px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-transform: uppercase;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;

  & .btn-arrow {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  &:hover .btn-arrow {
    transform: translateX(3px);
  }

  &.btn-brand {
    background: var(--bone);
    border: 1px solid var(--bone);
    color: var(--forest);

    &:hover,
    &:focus-visible {
      background: transparent;
      border-color: rgba(255, 255, 255, 0.72);
      color: #fff;
    }
  }

  &.btn-forest {
    background: var(--forest);
    border: 1px solid var(--forest);
    color: #fff;

    &:hover,
    &:focus-visible {
      background: var(--gold-ink);
      border-color: var(--gold-ink);
      color: #fff;
    }
  }

  &.btn-outline-bone {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;

    &:hover,
    &:focus-visible {
      background: #fff;
      border-color: #fff;
      color: var(--forest);
    }
  }

  &.btn-outline-forest {
    background: transparent;
    border: 1px solid var(--forest);
    color: var(--forest);

    &:hover {
      background: var(--forest);
      color: #fff;
    }
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 760px;
  min-height: min(100svh, 980px);
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--forest-deep);
  color: #fff;

  & .hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
  }

  & .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.045);
    transition:
      opacity 1.1s ease,
      transform 6s ease;

    &.is-active {
      opacity: 1;
      transform: scale(1);
    }
  }

  & .hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(
        180deg,
        rgba(11, 24, 19, 0.48) 0%,
        rgba(11, 24, 19, 0) 24%
      ),
      linear-gradient(
        95deg,
        rgba(11, 24, 19, 0.84) 0%,
        rgba(11, 24, 19, 0.46) 52%,
        rgba(11, 24, 19, 0.08) 100%
      ),
      linear-gradient(
        0deg,
        rgba(11, 24, 19, 0.8) 0%,
        rgba(11, 24, 19, 0.08) 46%,
        rgba(11, 24, 19, 0.18) 100%
      );
  }

  & .hero-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    padding-block: clamp(4.5rem, 11vh, 8rem) clamp(2rem, 5vh, 4rem);
  }

  & .hero-copy {
    max-width: 42rem;

    & .lead-copy {
      max-width: 25rem;
      margin: 1.5rem 0 1.9rem;
      color: rgba(255, 255, 255, 0.8);
    }
  }

  & .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  & .hero-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    padding-block: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.26);
    color: rgba(255, 255, 255, 0.68);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.14em;
  }

  & .hero-progress {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    & strong {
      color: #fff;
      font-weight: 600;
    }

    & .hero-rule {
      width: 2.4rem;
      height: 1px;
      background: rgba(255, 255, 255, 0.4);
    }
  }

  & .hero-slot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.7rem;
    margin-left: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    text-transform: none;

    & strong {
      color: #fff;
      font-weight: 600;
    }

    & .dot {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: var(--gold-soft);
    }
  }

  & .hero-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  & .hero-scroll {
    margin-right: 0.6rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;

    &:hover {
      color: #fff;
    }
  }

  & .hero-btn {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    transition:
      background 0.2s ease,
      color 0.2s ease,
      border-color 0.2s ease;

    &:hover,
    &:focus-visible {
      background: #fff;
      color: var(--forest);
      border-color: #fff;
    }
  }
}

/* =========================================================
   Intro / Sobre
   ========================================================= */
.intro-copy p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2.4rem, 5vw, 3.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.fact {
  & strong {
    display: block;
    color: var(--forest);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(2rem, 3.3vw, 2.8rem);
    font-weight: 400;
    line-height: 1;
  }

  & span {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.55;
    text-transform: uppercase;
  }
}

/* =========================================================
   Imóveis em destaque
   ========================================================= */
.heading-aside {
  max-width: 21rem;
  margin-left: auto;

  & p {
    margin: 0 0 1.2rem;
    color: var(--muted);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.5;
  }
}

.property-card {
  height: 100%;

  & .card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;

    &:hover .card-media img,
    &:focus-visible .card-media img {
      transform: scale(1.045);
    }

    &:hover .card-arrow {
      background: var(--bone);
      border-color: var(--bone);
      color: var(--forest);
    }
  }

  & .card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3.05;
    background: #d9d8d0;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        0deg,
        rgba(10, 23, 18, 0.42) 0%,
        rgba(10, 23, 18, 0) 48%
      );
      pointer-events: none;
    }
  }

  & .card-tag {
    position: absolute;
    z-index: 2;
    top: 0.9rem;
    left: 0.9rem;
    padding: 0.48rem 0.62rem;
    background: rgba(246, 245, 241, 0.95);
    color: var(--forest);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  & .card-photo-count {
    position: absolute;
    z-index: 2;
    bottom: 1.15rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  & .card-arrow {
    position: absolute;
    z-index: 2;
    right: 0.9rem;
    bottom: 0.9rem;
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition:
      background 0.25s ease,
      color 0.25s ease,
      border-color 0.25s ease;
  }

  & .card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 1.15rem;
  }

  & .card-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.3rem;
    color: var(--muted);
    font-size: 1rem;
    letter-spacing: 0.02em;

    &::before {
      content: "";
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--gold);
    }
  }

  & .card-title {
    margin: 0 0 0.95rem;
    color: var(--forest);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(1.7rem, 2.4vw, 2rem);
    font-weight: 400;
    line-height: 1.1;
  }

  & .card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.7rem;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(36, 59, 49, 0.17);
    color: var(--muted);
    font-size: 1rem;

    & .sep {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: #b5b8b0;
    }
  }

  & .card-price {
    margin-left: auto;
    color: var(--forest);
    font-size: 1rem;
    font-weight: 700;
  }
}

/* =========================================================
   Faixa para proprietários
   ========================================================= */
.owner-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background: var(--forest);
  color: #fff;

  &::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: min(44rem, 65vw);
    height: min(44rem, 65vw);
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgba(182, 138, 85, 0.2) 0%,
      rgba(182, 138, 85, 0) 68%
    );
    pointer-events: none;
  }

  &::after {
    content: "c.";
    position: absolute;
    right: 4vw;
    bottom: -3.5rem;
    color: rgba(255, 255, 255, 0.035);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 18rem;
    font-style: italic;
    line-height: 1;
    pointer-events: none;
  }

  & .lead-copy {
    max-width: 24rem;
    color: rgba(255, 255, 255, 0.75);
  }

  & .owner-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.4rem;
    margin-top: 1.5rem;
    font-size: 1rem;

    & a {
      color: var(--gold-soft);
      text-decoration: none;

      &:hover {
        color: #fff;
      }
    }
  }
}

/* =========================================================
   Formulário
   ========================================================= */
.contact-copy p {
  max-width: 25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.contact-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1rem;
  color: var(--muted);

  & .label {
    display: block;
    margin-bottom: 0.1rem;
    color: var(--gold-ink);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  & a,
  & strong {
    color: var(--forest);
    font-weight: 600;
    text-decoration: none;
  }

  & a:hover {
    color: var(--gold-ink);
  }
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.35rem, 3.5vw, 2.5rem);
  box-shadow: 0 18px 50px rgba(36, 59, 49, 0.06);

  & .form-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;

    & .step {
      color: var(--gold-ink);
    }
  }

  & h3 {
    margin: 0 0 0.3rem;
    color: var(--forest);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(1.85rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.1;
  }

  & .form-intro {
    margin: 0 0 0.6rem;
    color: var(--muted);
    font-size: 1rem;
  }
}

.form-label {
  margin: 0.8rem 0 0.2rem;
  color: var(--forest);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.form-control,
.form-select {
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid #cfccc2;
  border-radius: 0;
  background-color: transparent;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.form-control::placeholder {
  color: #82867d;
  font-size: 1rem;
  opacity: 1;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  background-color: transparent;
  box-shadow: none;
  color: var(--ink);
}

.form-select {
  padding-right: 1.4rem;
  background-image: var(--bs-form-select-bg-img);

  & option {
    background: var(--paper);
    color: var(--ink);
  }
}

.form-check {
  margin-top: 1.1rem;

  & .form-check-input {
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0.18rem;
    border-radius: 1px;
    border-color: #aeb0a7;

    &:checked {
      background-color: var(--forest);
      border-color: var(--forest);
    }

    &:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 0.15rem rgba(182, 138, 85, 0.18);
    }
  }

  & .form-check-label {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;

    & a {
      color: var(--forest);
    }
  }
}

.form-submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 1.35rem;
}

.form-note {
  display: block;
  margin-top: 0.7rem;
  color: #71766d;
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
}

.invalid-feedback {
  font-size: 1rem;
  color: #9d4438;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.form-control.is-invalid,
.form-select.is-invalid {
  padding-right: 0;
  border-color: #a95244;
  background-image: none;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid,
.form-control.is-valid,
.form-select.is-valid {
  border-color: #cfccc2;
  background-image: none;
  padding-right: 0;
}

.was-validated .form-select:valid,
.was-validated .form-select:invalid {
  background-image: var(--bs-form-select-bg-img);
  padding-right: 1.4rem;
}

/* Estado de sucesso do formulário */
.lead-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 19rem;

  & .success-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1.2rem;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold-ink);
    font-size: 1rem;
  }

  & .eyebrow {
    margin-bottom: 0.8rem;
  }

  & h3 {
    margin: 0 0 0.4rem;
    color: var(--forest);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.15;

    &:focus {
      outline: none;
    }
  }

  & p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
  }
}

.success-reset {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  padding: 0 0 0.2rem;
  margin-top: 0.4rem;
  color: var(--forest);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* =========================================================
   Rodapé
   ========================================================= */
.site-footer {
  padding-block: 1.8rem;
  border-top: 1px solid var(--line);
  background: var(--bone);

  & .brand-name {
    font-size: 1.15rem;
  }
  & .brand-mark {
    color: var(--gold-ink);
  }
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;

  & a {
    color: var(--muted);
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-decoration: none;

    &:hover {
      color: var(--forest);
    }
  }
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.footer-top {
  text-decoration: none;
  color: var(--forest);
  font-weight: 600;
}

/* =========================================================
   Detalhe do imóvel
   ========================================================= */
.property-view {
  padding-top: calc(var(--header-h) + 1.4rem);
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem 1.2rem;
  color: var(--muted);
  font-size: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;

  &:hover {
    color: var(--forest);
  }
}

.detail-code {
  margin: 0 auto 0 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 1rem;
  font-weight: 600;

  &:hover {
    color: var(--gold-ink);
  }
}

/* Galeria */
.gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e1dfd7;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;

    &.is-updating {
      opacity: 0.25;
    }
  }

  & .gallery-top {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    right: 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    pointer-events: none;
  }

  & .gallery-counter,
  & .gallery-badge {
    padding: 0.42rem 0.6rem;
    background: rgba(14, 28, 22, 0.64);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
    backdrop-filter: blur(7px);
  }

  & .gallery-badge {
    color: var(--gold-soft);
  }

  & .gallery-bottom {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 3rem 0.9rem 0.9rem;
    color: #fff;
    background: linear-gradient(
      0deg,
      rgba(9, 22, 16, 0.72),
      rgba(9, 22, 16, 0)
    );
  }

  & .gallery-caption {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    line-height: 1.5;
    text-transform: uppercase;
  }

  & .gallery-controls {
    display: flex;
    gap: 0.45rem;

    & button {
      display: grid;
      place-items: center;
      width: 41px;
      height: 41px;
      border: 1px solid rgba(255, 255, 255, 0.58);
      border-radius: 50%;
      background: rgba(15, 30, 23, 0.18);
      color: #fff;
      transition:
        background 0.2s ease,
        color 0.2s ease;

      &:hover {
        background: var(--bone);
        color: var(--forest);
        border-color: var(--bone);
      }
    }
  }
}

.gallery-thumbs-desktop {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: clamp(0.4rem, 0.8vw, 0.7rem);
  height: 100%;
}

.gallery-thumbs-mobile {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #e1dfd7;
  opacity: 0.68;
  transition: opacity 0.2s ease;

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

  &:hover,
  &.is-active {
    opacity: 1;
  }

  &.is-active {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
  }

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    pointer-events: none;
  }
}

.gallery-thumbs-mobile .gallery-thumb {
  aspect-ratio: 4 / 3;
}
.gallery-thumbs-desktop .gallery-thumb {
  min-height: 0;
}

/* Conteúdo do detalhe */
.detail-section {
  padding-block: clamp(3rem, 6.5vw, 5.5rem);
}

.detail-heading {
  margin: 0;
  color: var(--forest);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;

  & .detail-period {
    color: var(--gold);
  }
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 1rem;

  &::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
  }
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin: 1.4rem 0 0;
  padding: 0.95rem 0;
  border-block: 1px solid var(--line);
  list-style: none;
  color: #4e584f;
  font-size: 1rem;

  & li {
    position: relative;
    padding-left: 0.85rem;

    &::before {
      content: "";
      position: absolute;
      top: 0.55em;
      left: 0;
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: var(--gold);
    }
  }
}

.detail-copy {
  padding-top: 2rem;

  & h2 {
    margin: 0 0 1.1rem;
    color: var(--forest);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.15;

    & em {
      color: var(--sage);
      font-family: "Instrument Serif", Georgia, serif;
      font-weight: 400;
    }
  }

  & p {
    max-width: 40rem;
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
  }
}

.features {
  margin-top: 2.2rem;

  & h3 {
    margin: 0 0 1rem;
    color: var(--forest);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 400;
  }
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;

  & li {
    position: relative;
    padding-left: 1.25rem;
    color: #4e584f;
    font-size: 1rem;
    line-height: 1.6;

    &::before {
      content: "✓";
      position: absolute;
      top: -1px;
      left: 0;
      color: var(--gold-ink);
      font-size: 1rem;
    }
  }
}

/* Sidebar do detalhe */
.sticky-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.4rem);
}

.price-card {
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  background: var(--paper);

  & .eyebrow {
    margin-bottom: 0.8rem;
    font-size: 1rem;
  }

  & .btn {
    width: 100%;
    justify-content: space-between;
  }
}

.price-value {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--forest);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.price-note {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1rem;
}

.price-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;

  &:hover {
    color: var(--forest);
  }
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);

  & .avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--forest);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1rem;
  }

  & .agent-info {
    display: flex;
    flex-direction: column;
    min-width: 0;

    & span {
      color: var(--muted);
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: 0.12em;
    }

    & strong {
      color: var(--forest);
      font-family: "Instrument Serif", Georgia, serif;
      font-size: 1.1rem;
      font-weight: 400;
      line-height: 1.3;
    }

    & small {
      color: var(--muted);
      font-size: 1rem;
    }
  }

  & .agent-link {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--forest);
    text-decoration: none;

    &:hover {
      background: var(--forest);
      color: #fff;
      border-color: var(--forest);
    }
  }
}

.detail-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.65;

  & strong {
    color: var(--forest);
    font-weight: 400;
  }
}

/* Faixa de interesse no detalhe */
.detail-lead {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--forest);
  color: #fff;

  & .lead-copy {
    max-width: 23rem;
    color: rgba(255, 255, 255, 0.74);
  }

  & .eyebrow {
    color: rgba(255, 255, 255, 0.7);

    &::before {
      background: var(--gold-soft);
    }
  }
}

.detail-contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1.5rem;

  & span {
    color: var(--gold-soft);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.13em;
  }

  & strong {
    color: #fff;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
  }
}

/* =========================================================
   Toast
   ========================================================= */
.app-toast {
  position: fixed;
  z-index: 2000;
  bottom: 1.1rem;
  left: 50%;
  max-width: calc(100vw - 2rem);
  padding: 0.75rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--forest-deep);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;

  &.show {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* =========================================================
   Motion (reveal)
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;

  &.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Media queries
   ========================================================= */
@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
  }
  .sticky-sidebar {
    position: sticky;
  }

  .gallery-thumbs-column {
    position: relative;
  }

  .gallery-thumbs-desktop {
    position: absolute;
    inset: 0;
    height: auto;
  }
}

@media (max-width: 991.98px) {
  :root {
    --header-h: 74px;
  }

  .hero {
    min-height: min(92svh, 860px);

    & .hero-main {
      align-items: flex-end;
      padding-block: 5rem 2.25rem;
    }

    & .hero-shade {
      background:
        linear-gradient(
          180deg,
          rgba(11, 24, 19, 0.46),
          rgba(11, 24, 19, 0) 22%
        ),
        linear-gradient(90deg, rgba(11, 24, 19, 0.8), rgba(11, 24, 19, 0.32)),
        linear-gradient(
          0deg,
          rgba(11, 24, 19, 0.88),
          rgba(11, 24, 19, 0.06) 72%
        );
    }
  }

  .sticky-sidebar {
    position: static;
  }
  .detail-sidebar {
    margin-top: 2.2rem;
  }

  .heading-aside {
    margin-left: 0;
    max-width: 28rem;
  }

  .gallery-main {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding-block: 3.6rem;
  }

  .display-hero {
    font-size: clamp(3.15rem, 14vw, 4.6rem);
  }
  .section-title {
    font-size: clamp(2.25rem, 9vw, 3rem);
  }

  .hero {
    min-height: max(610px, 86svh);

    & .hero-copy .lead-copy {
      max-width: 21rem;
      margin: 1.2rem 0 1.5rem;
      font-size: 1rem;
    }

    & .hero-actions .btn {
      padding: 0.85rem 1rem;
      font-size: 1rem;
    }

    & .hero-foot {
      font-size: 1rem;
      gap: 0.6rem;
    }

    & .hero-slot {
      width: 100%;
      margin-left: 0;
      padding-top: 0.2rem;

      & .dot {
        display: none;
      }
      & .hero-place {
        display: none;
      }
    }

    & .hero-scroll {
      display: none !important;
    }
    & .hero-progress .hero-rule {
      width: 1.5rem;
    }

    & .hero-btn {
      width: 36px;
      height: 36px;
    }
  }

  .fact-grid {
    gap: 0.6rem;
  }
  .fact span {
    letter-spacing: 0.08em;
    font-size: 1rem;
  }

  .property-card .card-media {
    aspect-ratio: 4 / 3;
  }
  .card-price {
    margin-left: 0;
    flex-basis: 100%;
  }
  .card-title {
    font-size: 1.8rem;
  }

  .heading-aside {
    margin-top: 0.8rem;
  }
  .contact-copy {
    margin-bottom: 1.6rem;
  }
  .form-card {
    box-shadow: none;
  }

  .property-view {
    padding-top: calc(var(--header-h) + 0.7rem);
  }
  .detail-code {
    display: none;
  }
  .detail-topbar {
    padding-bottom: 0.75rem;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;

    & .gallery-badge {
      font-size: 1rem;
    }

    & .gallery-bottom {
      padding: 2.2rem 0.7rem 0.7rem;
    }

    & .gallery-controls button {
      width: 36px;
      height: 36px;
    }
  }

  .detail-copy h2 {
    font-size: 1.75rem;
  }
  .detail-sidebar {
    margin-top: 1.8rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .detail-stats {
    gap: 0.5rem 1.1rem;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-footer .brand-name {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .property-grid > .col-md-12 .card-media {
    aspect-ratio: 16 / 7.5;
  }
}

@media (max-width: 575.98px) {
  .hero-slot,
  .hero-progress {
    font-size: 1rem;
  }

  .owner-band .btn,
  .hero-actions .btn {
    width: 100%;
    justify-content: space-between;
  }

  .btn {
    justify-content: space-between;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
