/*
  Vértice Imóveis | Passo 2
  Arquivo: assets/css/style.css
  Foco: refinamento visual, responsividade, microinterações e estados prontos para Lenis + GSAP.
*/

:root {
  --color-navy-950: #061b27;
  --color-navy-900: #071f2d;
  --color-navy-850: #09283a;
  --color-navy-800: #0d3345;
  --color-navy-700: #102f41;
  --color-navy-600: #263f4d;
  --color-green-500: #74c84b;
  --color-green-600: #69ba44;
  --color-cream-50: #fbfaf7;
  --color-cream-100: #f8f5ef;
  --color-cream-200: #eee8df;
  --color-cream-300: #e4ded4;
  --color-cream-400: #d9d1c3;
  --color-text-muted: #52636f;
  --color-text-soft: #657681;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-soft: 0 18px 48px rgba(16, 47, 65, 0.09);
  --shadow-medium: 0 24px 70px rgba(16, 47, 65, 0.14);
  --shadow-strong: 0 32px 90px rgba(6, 27, 39, 0.2);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 4%, rgba(116, 200, 75, 0.08), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(13, 51, 69, 0.07), transparent 34rem),
    var(--color-cream-100);
  color: var(--color-navy-700);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(16, 47, 65, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 47, 65, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 42%);
}

img,
svg,
video {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

:focus-visible {
  outline: 3px solid rgba(116, 200, 75, 0.6);
  outline-offset: 4px;
}

::selection {
  background: var(--color-green-500);
  color: #fff;
}

.font-\[\'Playfair_Display\'\],
.hero-section h1,
.section-intro h2,
.property-card h3,
.destination-card strong,
.process-item h3,
.trust-section h2,
.trust-section dt,
.cta-section h2 {
  font-family: "Playfair Display", Georgia, serif;
}

.eyebrow {
  letter-spacing: 0.24em;
  line-height: 1.35;
}

/* Header */
.site-header {
  transition:
    background-color 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.site-header.is-scrolled {
  border-color: rgba(217, 209, 195, 0.84);
  background-color: rgba(251, 250, 247, 0.96);
  box-shadow: 0 14px 38px rgba(6, 27, 39, 0.08);
}

.brand-link {
  min-width: max-content;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.brand-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.brand-link img {
  height: clamp(2.5rem, 4vw, 3.05rem);
  object-fit: contain;
}

.main-nav {
  min-width: 0;
}

.nav-link,
.header-cta,
.mobile-menu-button,
.mobile-nav a,
.site-footer a,
.audience-card a,
.featured-section a,
.destinations-section a,
.cta-section a,
.hero-section a {
  transition:
    color 220ms var(--ease-out),
    background-color 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.nav-link {
  position: relative;
  padding-block: 0.4rem;
}

.nav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  content: "";
  background: var(--color-green-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms var(--ease-out);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-cta:hover {
  box-shadow: 0 16px 34px rgba(16, 47, 65, 0.11);
  transform: translateY(-1px);
}

.mobile-menu-button {
  position: relative;
}

.mobile-menu-button span span {
  transition: transform 220ms var(--ease-out), opacity 180ms var(--ease-out);
}

.mobile-menu-button.is-open span span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-button.is-open span span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.is-open span span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  box-shadow: 0 24px 54px rgba(6, 27, 39, 0.12);
}

.mobile-nav.is-open {
  display: block;
  animation: mobileMenuIn 260ms var(--ease-out) both;
}

@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */
.hero-section {
  isolation: isolate;
  background: var(--color-cream-100);
}

.hero-media {
  background: var(--color-navy-900);
}

.hero-image {
  filter: saturate(0.94) contrast(1.04);
  transform: scale(1.02);
  transform-origin: center;
}

.hero-content {
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.24);
}

.hero-content h1 {
  text-wrap: balance;
}

.hero-content p:not(.eyebrow) {
  text-wrap: pretty;
}

.hero-section a[href="#imoveis"]:hover,
.cta-section a:hover {
  box-shadow: 0 24px 56px rgba(116, 200, 75, 0.36);
}

.hero-section a[target="_blank"]:hover {
  box-shadow: 0 18px 44px rgba(255, 255, 255, 0.12);
}

/* Search */
.search-panel {
  position: relative;
  overflow: hidden;
}

.search-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 245, 239, 0.72));
}

.search-field {
  position: relative;
  transition:
    background-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.search-field:hover,
.search-field:focus-within {
  background-color: #fff;
  box-shadow: 0 16px 34px rgba(16, 47, 65, 0.08);
  transform: translateY(-1px);
}

.search-field input::placeholder {
  color: #7a8890;
}

.search-field input,
.search-field select {
  min-width: 0;
}

.search-field select {
  color: #60707a;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 52%,
    calc(100% - 9px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.search-panel button[type="submit"] {
  white-space: nowrap;
}

.search-panel button[type="submit"]:hover {
  box-shadow: 0 22px 46px rgba(13, 51, 69, 0.28);
}

/* Intro */
.section-intro {
  position: relative;
}

.section-intro::before {
  position: absolute;
  left: 50%;
  top: 2.2rem;
  z-index: -1;
  width: min(72rem, 90vw);
  height: 16rem;
  content: "";
  background: radial-gradient(circle, rgba(116, 200, 75, 0.07), transparent 68%);
  transform: translateX(-50%);
}

.section-intro h2,
.trust-section h2,
.cta-section h2 {
  text-wrap: balance;
}

.intro-copy {
  align-self: center;
}

/* Featured properties */
.featured-section {
  position: relative;
}

.property-grid {
  align-items: stretch;
}

.property-card {
  position: relative;
  min-width: 0;
  will-change: transform;
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    border-color 260ms var(--ease-out);
}

.property-card:hover {
  border-color: rgba(116, 200, 75, 0.42);
  box-shadow: 0 24px 60px rgba(16, 47, 65, 0.14);
  transform: translateY(-6px);
}

.property-card a {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.property-card figure {
  background: #d8d0c5;
}

.property-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}

.property-card:hover img {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.06);
}

.favorite-button {
  z-index: 2;
}

.favorite-button:hover {
  color: #fff;
  border-color: rgba(116, 200, 75, 0.9);
  background: rgba(116, 200, 75, 0.9);
  transform: translateY(-1px) scale(1.03);
}

/* Audience cards */
.audience-section {
  position: relative;
}

.audience-card {
  min-height: 14rem;
  border-color: rgba(217, 209, 195, 0.9);
}

.audience-card .icon-badge {
  background: rgba(255, 255, 255, 0.46);
  transition:
    color 260ms var(--ease-out),
    background-color 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}

.audience-card:hover .icon-badge {
  color: #fff;
  border-color: var(--color-green-500);
  background: var(--color-green-500);
  box-shadow: 0 18px 42px rgba(116, 200, 75, 0.24);
  transform: translateY(-2px);
}

.audience-card h3 {
  text-wrap: balance;
}

.audience-card p {
  text-wrap: pretty;
}

/* Destinations */
.destination-card {
  min-height: clamp(12rem, 17vw, 15.5rem);
  transform: translateZ(0);
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}

.destination-card:hover {
  box-shadow: 0 28px 72px rgba(16, 47, 65, 0.22);
  transform: translateY(-4px);
}

.destination-card strong {
  line-height: 1.02;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.destination-card small {
  display: inline-block;
  margin-top: 0.35rem;
}

/* Process */
.process-section {
  position: relative;
}

.process-list {
  counter-reset: process;
}

.process-item {
  isolation: isolate;
}

.process-item > span {
  position: relative;
  z-index: 2;
  transition:
    color 260ms var(--ease-out),
    background-color 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.process-item:hover > span {
  color: #fff;
  border-color: var(--color-green-500);
  background: var(--color-green-500);
  box-shadow: 0 18px 42px rgba(116, 200, 75, 0.25);
  transform: translateY(-2px);
}

.process-item p {
  text-wrap: pretty;
}

/* Trust */
.trust-section {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(217, 209, 195, 0.7);
}

.trust-section::before {
  position: absolute;
  inset: auto -10% -35% auto;
  width: min(40rem, 78vw);
  height: min(40rem, 78vw);
  content: "";
  background: radial-gradient(circle, rgba(116, 200, 75, 0.12), transparent 68%);
}

.trust-section dl {
  position: relative;
}

.trust-section dt {
  letter-spacing: -0.04em;
}

.testimonial-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    border-color 260ms var(--ease-out);
}

.testimonial-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(116, 200, 75, 0.08), transparent 46%);
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}

.testimonial-card:hover {
  border-color: rgba(116, 200, 75, 0.3);
  box-shadow: 0 28px 70px rgba(16, 47, 65, 0.14);
  transform: translateY(-4px);
}

.testimonial-card:hover::after {
  opacity: 1;
}

/* CTA */
.cta-section > div {
  min-height: 15.5rem;
}

.cta-section img {
  filter: saturate(0.92) contrast(1.05);
  transform: scale(1.02);
}

/* Footer */
.site-footer {
  position: relative;
}

.site-footer img {
  object-fit: contain;
}

.site-footer h3 {
  color: #73818a;
}

.site-footer a:hover {
  transform: translateX(2px);
}

.site-footer [aria-label="Redes sociais"] a:hover {
  transform: translateY(-2px);
}

/* GSAP hooks: os elementos continuam visíveis sem JS. O main.js define os estados iniciais. */
[data-animate] {
  will-change: transform, opacity;
}

.hero-image,
.cta-section img,
.property-card img,
.destination-card img {
  will-change: transform;
}

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

  [data-animate],
  .hero-image,
  .cta-section img,
  .property-card img,
  .destination-card img {
    will-change: auto;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --header-height: 68px;
  }

  .site-header > div:first-child {
    height: var(--header-height);
  }

  .brand-link img {
    max-width: 10.5rem;
  }

  .hero-section {
    padding-top: var(--header-height);
  }

  .hero-media {
    top: var(--header-height);
    height: 38.5rem;
  }

  .hero-image {
    object-position: 61% center;
  }

  .hero-section > div:nth-of-type(2) {
    min-height: 38.5rem;
    align-items: flex-end;
    padding-top: 3.5rem;
    padding-bottom: 8.25rem;
  }

  .hero-content h1 {
    font-size: clamp(2.9rem, 13vw, 4.7rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
  }

  .hero-content p:not(.eyebrow) {
    max-width: 30rem;
    font-size: 1rem;
    line-height: 1.75;
  }

  .search-panel {
    margin-top: -0.5rem;
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .search-field {
    min-height: 4.2rem;
  }

  .search-panel button[type="submit"] {
    min-height: 4.2rem;
  }

  .section-intro {
    padding-top: 4.25rem;
  }

  .section-intro h2,
  .trust-section h2,
  .cta-section h2 {
    font-size: clamp(2.25rem, 10vw, 3.3rem);
  }

  .intro-copy {
    border-left-width: 0;
    padding-left: 0;
  }

  .intro-copy p {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(116, 200, 75, 0.55);
  }

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

  .property-card figure {
    aspect-ratio: 1.42 / 1;
  }

  .audience-card {
    min-height: auto;
    padding: 1.25rem;
    border: 1px solid rgba(217, 209, 195, 0.82);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.45);
  }

  .destination-card {
    min-height: 13.5rem;
  }

  .destination-card strong {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    text-align: left;
  }

  .process-item > span {
    grid-row: span 2;
    margin: 0;
  }

  .process-item p {
    max-width: none;
  }

  .trust-section dl {
    grid-template-columns: 1fr;
  }

  .trust-section dt {
    font-size: 2.65rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .cta-section > div {
    min-height: 24rem;
  }

  .cta-section img {
    object-position: 58% center;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-card figure {
    aspect-ratio: 1.38 / 1;
  }
}

@media (min-width: 768px) {
  .search-panel {
    padding: 1.1rem;
  }

  .search-field + .search-field {
    border-left: 1px solid rgba(228, 222, 212, 0.9);
  }

  .process-item:not(:last-child)::after {
    position: absolute;
    top: 1.38rem;
    right: -15%;
    z-index: 1;
    width: 30%;
    height: 1px;
    content: "";
    background: repeating-linear-gradient(
      90deg,
      rgba(116, 200, 75, 0.7) 0 7px,
      transparent 7px 16px
    );
  }

  .process-item:not(:last-child)::before {
    position: absolute;
    top: 1.08rem;
    right: -15%;
    z-index: 1;
    width: 0.55rem;
    height: 0.55rem;
    content: "";
    border-top: 1px solid rgba(116, 200, 75, 0.85);
    border-right: 1px solid rgba(116, 200, 75, 0.85);
    transform: rotate(45deg);
  }
}

@media (min-width: 1024px) {
  .site-header > div:first-child {
    height: 76px;
  }

  .hero-section {
    padding-top: 76px;
  }

  .hero-media {
    top: 76px;
    height: 570px;
  }

  .hero-section > div:nth-of-type(2) {
    min-height: 570px;
  }

  .hero-content h1 {
    max-width: 47rem;
  }

  .search-panel {
    grid-template-columns: minmax(13rem, 1.25fr) minmax(10rem, 1fr) minmax(10rem, 1fr) minmax(8rem, 0.85fr) auto;
    padding: 1.25rem;
  }

  .section-intro {
    padding-top: 6.25rem;
  }

  .featured-section,
  .audience-section,
  .destinations-section,
  .process-section {
    padding-top: 3.4rem;
    padding-bottom: 3.4rem;
  }

  .property-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .property-card h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .property-card p {
    line-height: 1.35;
  }

  .destination-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .hero-content h1 {
    font-size: 4.7rem;
  }

  .property-card h3 {
    font-size: 1.05rem;
  }
}

@media (min-width: 1440px) {
  .hero-media,
  .hero-section > div:nth-of-type(2) {
    height: 590px;
    min-height: 590px;
  }
}



/* Ajustes finais: favorito persistente e ícone do especialista */
.favorite-button {
  cursor: pointer;
  transition: transform .28s var(--ease-out), background-color .28s var(--ease-out), border-color .28s var(--ease-out), color .28s var(--ease-out);
}

.favorite-button:hover {
  transform: translateY(-1px) scale(1.04);
}

.favorite-button.is-active,
.favorite-button[aria-pressed="true"] {
  background: rgba(116, 200, 75, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.82) !important;
  color: #fff !important;
}

.favorite-button.is-active svg,
.favorite-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.hero-content a svg {
  flex: 0 0 auto;
}


/* Ajuste final: ícone real do WhatsApp no botão Falar com especialista */
.whatsapp-real-icon {
  color: currentColor;
  transform: translateY(0);
}
