/* ==========================================================================
   Villatel Realty — Page Body Styles
   realty-body.css
   Chrome (nav, sticky nav, hamburger drawer, footer, modal) are
   styled exclusively by hbv/hbv-chrome.css. This file = page body only.
   ========================================================================== */

:root {
  color-scheme: light;
  --deep-teal:      #153442;
  --mist-blue:      #98C1D8;
  --stone-taupe:    #AFA085;
  --soft-ivory:     #FFFFFF;
  --seafoam:        #D1DBD6;
  --taupe-light:    #C9BFA9;
  --taupe-deep:     #8A7C66;
  --ivory-warm:     #F5EFE0;
  --ivory-warmer:   #EDE6D2;
  --teal-deep:      #061B29;
  --ink:            #2A2A28;
  --ink-muted:      #6B6862;
  --hairline:       rgba(42, 42, 40, 0.12);
  --hairline-light: rgba(255, 255, 255, 0.18);

  --font-display: 'Archivo Expanded', 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body:    'Outfit', 'Helvetica Neue', sans-serif;

  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--soft-ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--deep-teal); color: var(--soft-ivory); }

/* ---- Required hbv-kit layout fix ---- */
hbv-search, hbv-book-modal { display: contents; }

/* Popover visibility fix */
.search-field.is-active  .search-popover,
.book-field.is-active    .book-popover {
  opacity: 1 !important;
  animation: none !important;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe-deep);
}

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

.ornament {
  display: inline-block;
  width: 48px;
  height: 1px;
  vertical-align: middle;
  margin-right: 0.6rem;
  background: linear-gradient(90deg, transparent, var(--taupe-deep) 30%, var(--taupe-deep) 70%, transparent);
  opacity: 0.6;
}

.ornament--light {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65) 30%, rgba(255,255,255,0.65) 70%, transparent);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
  min-height: 44px;
}

.btn--primary {
  background: var(--deep-teal);
  color: var(--soft-ivory);
  border-color: var(--deep-teal);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.btn--ghost-light {
  background: transparent;
  color: var(--soft-ivory);
  border-color: rgba(255, 255, 255, 0.38);
}
.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  background: var(--soft-ivory);
  color: var(--ink);
  border-color: var(--soft-ivory);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--deep-teal);
  border-color: var(--deep-teal);
}
.btn--ghost-dark:hover,
.btn--ghost-dark:focus-visible {
  background: var(--deep-teal);
  color: var(--soft-ivory);
}

.btn .arrow { transition: transform 0.25s; }
.btn:hover  .arrow,
.btn:focus-visible .arrow { transform: translateX(4px); }

.btn:focus-visible {
  outline: 2px solid var(--mist-blue);
  outline-offset: 3px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--soft-ivory);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(3.5rem, 9vh, 7rem);
  overflow: hidden;
}

/* PLACEHOLDER: Replace with dedicated Villatel Realty hero photography */
.hero__media {
  position: absolute;
  inset: 0;
  background-image: url('../../orlandoassets/img/18ar-st049-twilight-drone1.jpg');
  background-size: cover;
  background-position: center 55%;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(21, 52, 66, 0.42) 0%,
      rgba(21, 52, 66, 0.30) 45%,
      rgba(6,  27, 41, 0.80) 100%
    );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mist-blue);
  flex-shrink: 0;
}

.hero__crumb {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.9rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  max-width: 20ch;
  text-wrap: pretty;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin: 0 0 2.75rem;
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ==========================================================================
   INTRO SECTION
   ========================================================================== */
.intro {
  padding: var(--section-y) 0;
  background: var(--soft-ivory);
  border-bottom: 1px solid var(--hairline);
}

.intro__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .intro__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .intro__inner {
    grid-template-columns: 5fr 7fr;
    gap: 7rem;
  }
}

.intro__eyebrow { margin-bottom: 1.25rem; }

.intro__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.13;
  color: var(--deep-teal);
  margin: 0;
  text-wrap: pretty;
}

.intro__body {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--ink);
}

.intro__body p { margin: 0 0 1.2rem; }
.intro__body p:last-child { margin-bottom: 0; }

.intro__attrs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
}

.attr {
  padding-right: 1.5rem;
  border-right: 1px solid var(--hairline);
}

.attr:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 1.5rem;
}

.attr:nth-child(2) {
  padding-left: 1.5rem;
}

.attr__value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--deep-teal);
  line-height: 1;
  letter-spacing: -0.01em;
}

.attr__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe-deep);
  margin-top: 0.5rem;
  line-height: 1.4;
}

@media (max-width: 479px) {
  .intro__attrs {
    grid-template-columns: 1fr 1fr;
    row-gap: 1.5rem;
  }

  .attr:last-child {
    border-right: none;
    padding-left: 0;
  }

  .attr { border-right: 1px solid var(--hairline); }
  .attr:nth-child(2n) { border-right: none; padding-left: 1.25rem; padding-right: 0; }
  .attr:nth-child(2n-1) { padding-left: 0; }
}

/* ==========================================================================
   MARKETS SECTION
   ========================================================================== */
.markets {
  padding: var(--section-y) 0;
  background: var(--deep-teal);
  color: var(--soft-ivory);
}

.markets__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.markets__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.13;
  margin: 0.9rem 0 0;
  max-width: 22ch;
  text-wrap: pretty;
}

.markets__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

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

.market-card {
  background: var(--deep-teal);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.3s;
}

.market-card:hover { background: color-mix(in srgb, var(--deep-teal) 85%, white); }

.market-card__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--mist-blue);
  opacity: 0.72;
  margin-bottom: 1.5rem;
}

.market-card__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.08;
  color: var(--soft-ivory);
  margin-bottom: 0.35rem;
}

.market-card__state {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone-taupe);
  margin-bottom: 1.25rem;
}

.market-card__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 2rem;
  flex-grow: 1;
  text-wrap: pretty;
}

.market-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist-blue);
  margin-top: auto;
}

.market-card__tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mist-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   PILLARS / WHY VILLATEL REALTY
   ========================================================================== */
.pillars {
  padding: var(--section-y) 0;
  background: var(--seafoam);
}

.pillars__header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.pillars__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--deep-teal);
  margin: 0.9rem 0 0;
  max-width: 28ch;
  text-wrap: pretty;
}

.pillars__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(21, 52, 66, 0.12);
}

@media (min-width: 640px) {
  .pillars__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .pillars__grid { grid-template-columns: repeat(4, 1fr); }
}

.pillar {
  padding: 2.25rem 2rem;
  background: var(--seafoam);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pillar__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--stone-taupe);
  margin-bottom: 1.5rem;
}

.pillar__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-teal);
  margin-bottom: 0.9rem;
  line-height: 1.35;
}

.pillar__body {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ==========================================================================
   NOTIFY / INTEREST CAPTURE SECTION
   ========================================================================== */
.notify {
  padding: var(--section-y) 0;
  background: var(--ivory-warmer);
  border-top: 1px solid var(--hairline);
}

.notify__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .notify__inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .notify__inner {
    grid-template-columns: 5fr 7fr;
    gap: 7rem;
  }
}

.notify__eyebrow { margin-bottom: 1.25rem; }

.notify__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.13;
  color: var(--deep-teal);
  margin: 0 0 1.5rem;
  text-wrap: pretty;
}

.notify__sub {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.notify__contact {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.notify__contact a {
  color: var(--deep-teal);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* --- Form --- */
.notify__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 479px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe-deep);
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(42, 42, 40, 0.2);
  background: var(--soft-ivory);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus { border-color: var(--deep-teal); }

.form-field input::placeholder { color: var(--ink-muted); opacity: 0.55; }

.form-field select { cursor: pointer; }

.notify__form .btn { align-self: flex-start; margin-top: 0.4rem; }

.notify__disclaimer {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.6;
  opacity: 0.7;
}

/* --- Success state --- */
.notify__success {
  display: none;
  padding: 2rem;
  border: 1px solid rgba(21, 52, 66, 0.15);
  background: var(--soft-ivory);
}

.notify__success.is-visible { display: block; }
.notify__form.is-hidden { display: none; }

.notify__success-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone-taupe);
  margin-bottom: 0.75rem;
}

.notify__success-msg {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.65s var(--ease-out-quart),
    transform 0.65s var(--ease-out-quart);
}

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

.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.18s; }
.reveal--d3 { transition-delay: 0.28s; }
.reveal--d4 { transition-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   FOCUS / KEYBOARD NAV
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--mist-blue);
  outline-offset: 3px;
}

/* ==========================================================================
   CONTACT ANCHOR (skip-link target)
   ========================================================================== */
.realty-contact {
  padding: 2rem 0;
  background: var(--ivory-warmer);
  border-top: 1px solid var(--hairline);
}

.realty-contact__line {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
}

.realty-contact__line a {
  color: var(--deep-teal);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ==========================================================================
   HIGH CONTRAST & FORCED COLORS
   ========================================================================== */
@media (forced-colors: active) {
  .hero__overlay { display: none; }
  .btn { border: 2px solid ButtonText; }
  :focus-visible { outline: 2px solid Highlight; }
}

@media (prefers-contrast: more) {
  :root {
    --hairline: rgba(42, 42, 40, 0.35);
    --ink-muted: rgba(42, 42, 40, 0.85);
  }
  .btn--ghost-dark  { border-width: 2px; }
  .btn--ghost-light { border-color: rgba(255, 255, 255, 0.75); }
}
