/*
  Vértice Imóveis — Página Contato
  Passo 2: CSS completo
  Stack: HTML semântico + Tailwind CDN + GSAP/Lenis no Passo 3
*/

:root {
  --vt-blue-950: #071f2d;
  --vt-blue-900: #0d3345;
  --vt-blue-800: #123e52;
  --vt-blue-700: #1d5066;
  --vt-green-600: #74c84b;
  --vt-green-700: #59a93b;
  --vt-cream-50: #fbfaf7;
  --vt-cream-100: #f8f5ef;
  --vt-cream-150: #f4efe7;
  --vt-cream-200: #ece4d7;
  --vt-cream-300: #ddd4c8;
  --vt-text: #102f41;
  --vt-muted: #5f717c;
  --vt-muted-2: #7c8b94;
  --vt-border: rgba(16, 47, 65, 0.12);
  --vt-shadow-sm: 0 12px 32px rgba(16, 47, 65, 0.08);
  --vt-shadow-md: 0 24px 70px rgba(16, 47, 65, 0.12);
  --vt-shadow-lg: 0 34px 100px rgba(16, 47, 65, 0.18);
  --vt-radius-sm: 14px;
  --vt-radius-md: 22px;
  --vt-radius-lg: 30px;
  --vt-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vt-header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--vt-header-h) + 24px);
}

body.page-contato {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(116, 200, 75, 0.09), transparent 31vw),
    radial-gradient(circle at 88% 16%, rgba(13, 51, 69, 0.07), transparent 34vw),
    linear-gradient(180deg, var(--vt-cream-50), var(--vt-cream-100) 34%, var(--vt-cream-50));
  color: var(--vt-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-contato::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 47, 65, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 47, 65, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(116, 200, 75, 0.42);
  outline-offset: 4px;
}

::selection {
  background: var(--vt-green-600);
  color: white;
}

.font-display,
.contact-hero h1,
.contact-card h2,
.contact-form-card h2,
.contact-location h2,
.contact-faq h2,
.contact-cta h2 {
  font-family: "Playfair Display", Georgia, serif;
}

/* Header */

.site-header {
  transition:
    box-shadow 0.32s var(--vt-ease),
    border-color 0.32s var(--vt-ease),
    background-color 0.32s var(--vt-ease),
    transform 0.32s var(--vt-ease);
}

.site-header.is-scrolled {
  border-color: rgba(16, 47, 65, 0.1);
  background: rgba(251, 250, 247, 0.98);
  box-shadow: 0 16px 45px rgba(16, 47, 65, 0.08);
}

.brand-link img {
  filter: drop-shadow(0 8px 16px rgba(16, 47, 65, 0.04));
}

.nav-link {
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--vt-green-600);
  transform: translateX(-50%);
  transition: width 0.28s var(--vt-ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 22px;
}

.header-cta {
  box-shadow: 0 8px 18px rgba(16, 47, 65, 0.04);
}

.header-cta:hover {
  box-shadow: 0 14px 28px rgba(116, 200, 75, 0.15);
}

.mobile-menu-button {
  transition:
    transform 0.28s var(--vt-ease),
    border-color 0.28s var(--vt-ease),
    background-color 0.28s var(--vt-ease);
}

.mobile-menu-button:hover {
  transform: translateY(-1px);
  border-color: rgba(116, 200, 75, 0.42);
}

.mobile-nav {
  box-shadow: 0 26px 50px rgba(16, 47, 65, 0.08);
}

/* Hero */

.contact-hero {
  isolation: isolate;
  background: var(--vt-blue-950);
}

.contact-hero__media img {
  transform: scale(1.04);
  filter: saturate(0.94) contrast(1.06);
}

.contact-hero h1 {
  text-wrap: balance;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.contact-hero p {
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

/* Main cards */

.contact-main {
  position: relative;
}

.contact-main::before {
  content: "";
  position: absolute;
  right: 4%;
  top: -2rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(116, 200, 75, 0.08);
  filter: blur(38px);
  pointer-events: none;
}

.contact-card,
.contact-form-card {
  position: relative;
  overflow: hidden;
}

.contact-card::before,
.contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 8%, rgba(116, 200, 75, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.72), transparent 70%);
}

.contact-card > *,
.contact-form-card > * {
  position: relative;
}

.contact-info-item {
  min-height: 4.8rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem;
  color: var(--vt-text);
  text-decoration: none;
  border-radius: 18px;
  transition:
    background-color 0.28s var(--vt-ease),
    transform 0.28s var(--vt-ease),
    color 0.28s var(--vt-ease);
}

.contact-info-item:hover {
  transform: translateX(4px);
  background: rgba(116, 200, 75, 0.055);
  color: var(--vt-green-700);
}

.contact-info-item__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--vt-green-700);
  background: rgba(116, 200, 75, 0.09);
  border: 1px solid rgba(116, 200, 75, 0.16);
}

.contact-info-item__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.contact-info-item strong {
  display: block;
  color: var(--vt-blue-900);
  font-size: 0.96rem;
  line-height: 1.3;
  font-weight: 800;
}

.contact-info-item small {
  display: block;
  margin-top: 0.35rem;
  color: var(--vt-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  font-weight: 550;
}

.contact-info-item > span:last-child {
  color: var(--vt-blue-900);
  font-weight: 800;
}

.contact-card__cta {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.92), transparent 42%),
    linear-gradient(135deg, rgba(238, 248, 234, 0.98), rgba(222, 240, 215, 0.82));
}

/* Form */

.contact-field {
  display: block;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(16, 47, 65, 0.14);
  border-radius: 14px;
  background: rgba(251, 250, 247, 0.78);
  color: var(--vt-blue-900);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    border-color 0.25s var(--vt-ease),
    box-shadow 0.25s var(--vt-ease),
    background-color 0.25s var(--vt-ease);
}

.contact-field input,
.contact-field select {
  min-height: 58px;
  padding: 0 1rem;
}

.contact-field textarea {
  min-height: 210px;
  resize: vertical;
  padding: 1rem;
  line-height: 1.7;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #6b7c86;
  opacity: 0.9;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: rgba(116, 200, 75, 0.78);
  background: white;
  box-shadow: 0 0 0 4px rgba(116, 200, 75, 0.13);
  outline: none;
}

.contact-field select {
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--vt-blue-900) 50%),
    linear-gradient(135deg, var(--vt-blue-900) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 51%,
    calc(100% - 14px) 51%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-consent {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--vt-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  font-weight: 600;
}

.contact-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  accent-color: var(--vt-green-600);
  cursor: pointer;
}

.contact-submit {
  width: 100%;
}

.contact-submit[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none !important;
}

/* Location */

.contact-location {
  position: relative;
}

.contact-location figure {
  min-height: 260px;
  overflow: hidden;
}

.contact-location figure img {
  min-height: 260px;
  object-fit: cover;
  transition: transform 1.2s var(--vt-ease), filter 1.2s var(--vt-ease);
}

.contact-location figure:hover img {
  transform: scale(1.025);
  filter: saturate(1.05);
}

/* FAQ */

.contact-faq {
  position: relative;
}

.faq-item {
  border: 1px solid rgba(16, 47, 65, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(16, 47, 65, 0.045);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0.95rem 3.5rem 0.95rem 1.2rem;
  color: var(--vt-blue-900);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-grid;
  place-items: center;
  color: var(--vt-green-700);
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 400;
  transform: translateY(-50%);
  transition: transform 0.28s var(--vt-ease);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  padding: 0 1.2rem 1.2rem;
  color: var(--vt-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  font-weight: 550;
}

/* CTA */

.contact-cta > div {
  isolation: isolate;
}

.contact-cta h2 {
  text-wrap: balance;
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.contact-cta img {
  transform: scale(1.04);
  filter: saturate(0.9) contrast(1.08);
}

/* Footer */

.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(116, 200, 75, 0.16), transparent 30%),
    radial-gradient(circle at 84% 0%, rgba(255, 255, 255, 0.07), transparent 26%);
  pointer-events: none;
}

.site-footer > div {
  position: relative;
}



.site-footer a {
  text-decoration: none;
}

/* Status messages */

.contact-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 9999;
  width: min(560px, calc(100% - 2rem));
  padding: 1rem 1.15rem;
  border: 1px solid rgba(116, 200, 75, 0.26);
  border-radius: 16px;
  background: rgba(251, 250, 247, 0.96);
  color: var(--vt-blue-900);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 700;
  box-shadow: 0 24px 80px rgba(16, 47, 65, 0.18);
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s var(--vt-ease),
    opacity 0.35s var(--vt-ease);
}

.contact-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Initial animation safety */

[data-animate] {
  opacity: 1;
}

html:not(.is-ready) [data-animate] {
  visibility: visible;
}

/* Responsive */

@media (max-width: 1023px) {
  :root {
    --vt-header-h: 72px;
  }

  .contact-main {
    grid-template-columns: 1fr;
  }

  .contact-location figure {
    min-height: 230px;
  }

  .contact-location figure img {
    min-height: 230px;
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    height: 68px;
  }

  .brand-link img {
    height: 2.55rem;
  }

  .contact-hero {
    padding-top: 68px;
  }

  .contact-hero__media {
    top: 68px;
    height: 500px;
  }

  .contact-hero > div:last-child {
    min-height: 500px;
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }

  .contact-hero h1 {
    font-size: clamp(2.55rem, 11vw, 4rem);
  }

  .contact-hero p {
    font-size: 1rem;
  }

  .contact-main,
  .contact-location,
  .contact-faq {
    padding-top: 3.1rem;
    padding-bottom: 3.1rem;
  }

  .contact-card,
  .contact-form-card {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .contact-info-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: flex-start;
  }

  .contact-info-item > span:last-child {
    display: none;
  }

  .contact-info-item__icon {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 14px;
  }

  .contact-field input,
  .contact-field select {
    min-height: 54px;
  }

  .contact-field textarea {
    min-height: 180px;
  }

  .contact-location h2,
  .contact-faq h2 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .contact-cta h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

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

@media (max-width: 420px) {
  .contact-card__cta {
    padding: 1rem;
  }

  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    font-size: 0.9rem;
  }

  .faq-item summary {
    padding-right: 3rem;
  }
}

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

  .contact-hero__media img,
  .contact-cta img,
  .contact-location figure img {
    transform: none !important;
  }
}



/* Ajustes finais: hero full cover, botão do formulário e textos brancos */
.contact-hero__media {
  bottom: 0 !important;
  height: auto !important;
}

.contact-cta p {
  color: #fff !important;
}

.contact-submit,
form[data-contact-form] button[type="submit"] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* Correção final: leitura do hero da página Contato */
.contact-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 31, 45, 0.92), rgba(7, 31, 45, 0.64) 46%, rgba(7, 31, 45, 0.28)),
    linear-gradient(0deg, rgba(7, 31, 45, 0.32), transparent 54%);
  pointer-events: none;
}

.contact-hero [data-animate="hero-copy"] p.mt-6,
.contact-hero p.mt-6 {
  color: #fff !important;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}
