﻿/* ========== Base ========== */
:root {
  --bg: #f7f4ef;
  --bg-alt: #ffffff;
  --ink: #1a1f2e;
  --ink-soft: #6b7285;
  --line: rgba(26, 31, 46, 0.1);
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --navy: #1e2a44;
  --navy-deep: #121a2b;
  --venda: #0f6b4c;
  --aluguel: #1a5f9e;
  --whatsapp: #3b82f6;
  --whatsapp-dark: #2563eb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(18, 26, 43, 0.12);
  --shadow-sm: 0 10px 28px rgba(18, 26, 43, 0.08);
  --font: "Montserrat", system-ui, sans-serif;
  --display: "Montserrat", system-ui, sans-serif;
  --container: 1180px;
  --header-h: 76px;
  --focus: 0 0 0 3px rgba(59, 130, 246, 0.35);
  --header-bg: rgba(247, 244, 239, 0.72);
  --header-shadow: 0 4px 24px rgba(18, 26, 43, 0.06);
  --nav-mobile-bg: rgba(247, 244, 239, 0.85);
  --search-bar-bg: rgba(255, 255, 255, 0.65);
  --search-field-bg: rgba(255, 255, 255, 0.55);
  --search-field-focus: rgba(255, 255, 255, 0.8);
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-border: rgba(255, 255, 255, 0.45);
  --fav-bg: rgba(255, 255, 255, 0.6);
  --step-bg: rgba(255, 255, 255, 0.5);
  --testimonial-bg: rgba(255, 255, 255, 0.55);
  --depoimentos-bg: linear-gradient(180deg, #eef2f7 0%, #f7f4ef 100%);
  --modal-close-bg: rgba(255, 255, 255, 0.65);
  --theme-toggle-bg: rgba(255, 255, 255, 0.2);
  --theme-toggle-color: #1e2a44;
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(18, 26, 43, 0.08);
}

/* ========== Dark theme â€” WTorres palette ========== */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --ink: #f1f5f9;
  --ink-soft: #94a3b8;
  --line: rgba(148, 163, 184, 0.12);
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --navy: #cbd5e1;
  --navy-deep: #f1f5f9;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.4);
  --focus: 0 0 0 3px rgba(59, 130, 246, 0.35);
  --header-bg: rgba(15, 23, 42, 0.75);
  --header-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --nav-mobile-bg: rgba(15, 23, 42, 0.92);
  --search-bar-bg: rgba(30, 41, 59, 0.65);
  --search-field-bg: rgba(15, 23, 42, 0.55);
  --search-field-focus: rgba(30, 41, 59, 0.75);
  --card-bg: rgba(30, 41, 59, 0.6);
  --card-border: rgba(148, 163, 184, 0.1);
  --fav-bg: rgba(30, 41, 59, 0.65);
  --step-bg: rgba(30, 41, 59, 0.55);
  --testimonial-bg: rgba(30, 41, 59, 0.6);
  --depoimentos-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  --modal-close-bg: rgba(30, 41, 59, 0.7);
  --theme-toggle-bg: rgba(148, 163, 184, 0.08);
  --theme-toggle-color: #f1f5f9;
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(148, 163, 184, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* ========== Typography ========== */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.35rem;
}

.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section__title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.section__title em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}

.section__desc {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  max-width: 42ch;
  font-size: 1.02rem;
  font-weight: 400;
}

.section__desc--center {
  margin-inline: auto;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: translateY(0) scale(1);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 1.5rem;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.28);
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--interest {
  background: #3b82f6;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.btn--interest:hover {
  background: #2563eb;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.btn--outline {
  background: #1e2a44;
  color: #ffffff;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  color: var(--navy);
  border: 1.5px solid var(--line);
  padding: 0.8rem 1.35rem;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 0.9rem 1.4rem;
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  padding: 0.9rem 1.4rem;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.28);
  margin-top: 1.75rem;
}

.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 1rem 1.8rem;
  font-size: 1.02rem;
}

.btn--full {
  width: 100%;
}

/* ========== Header ========== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--header-shadow);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--container));
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-login-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: var(--glass-border);
  background: var(--theme-toggle-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--theme-toggle-color);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.admin-login-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.05);
}

.admin-login-btn .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: var(--glass-border);
  background: var(--theme-toggle-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--theme-toggle-color);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.theme-toggle .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.theme-toggle__sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

/* Keep toggle readable over hero when header is transparent */
.header:not(.scrolled) .theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.header:not(.scrolled) .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

[data-theme="dark"] .header:not(.scrolled) .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.logo__img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.logo__text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.logo__text span {
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 0.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease, left 0.25s ease;
}

.nav__link:hover {
  color: var(--accent);
}

.nav__link:hover::after {
  width: 100%;
  left: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.25s ease;
}

.header:not(.scrolled) .menu-toggle span {
  background: #fff;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 18, 30, 0.95) 0%, rgba(12, 18, 30, 0.7) 35%, rgba(12, 18, 30, 0.15) 65%, transparent 100%),
    linear-gradient(180deg, rgba(12, 18, 30, 0.3) 0%, rgba(12, 18, 30, 0.6) 100%),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=85") center / cover no-repeat;
  z-index: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 75% 30%, rgba(59, 130, 246, 0.18), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  animation: heroFadeIn 0.8s ease both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .eyebrow {
  color: #93c5fd;
  margin-bottom: 1rem;
}

.hero .eyebrow::after {
  background: #93c5fd;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero__title em {
  font-style: italic;
  font-weight: 600;
  color: #93c5fd;
}

.hero__subtitle {
  margin-top: 1.5rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  max-width: 38ch;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Search */
.search-wrap {
  margin-top: 2.25rem;
  max-width: 900px;
  margin-inline: auto;
}

.search-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.2rem;
  border-radius: 16px;
  border: var(--glass-border);
  background: var(--search-bar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.search-toggle__chevron {
  margin-left: auto;
  transition: transform 0.25s ease;
}

.search-toggle[aria-expanded="true"] .search-toggle__chevron {
  transform: rotate(180deg);
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 0.5rem;
  padding: 10px;
  background: var(--search-bar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
  color: var(--ink);
  border: var(--glass-border);
}

.search-bar__field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.3rem 0.65rem;
  background: var(--search-field-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.search-bar__field:hover,
.search-bar__field:focus-within {
  border-color: var(--accent);
  background: var(--search-field-focus);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.search-bar__field label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.search-bar__field select {
  border: none;
  background: #1e2a44;
  color: #ffffff;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  outline: none;
  font-weight: 600;
  cursor: pointer;
}
.search-bar__field select option {
  color: #ffffff;
  background: #1e2a44;
}

.search-bar__field select:focus {
  box-shadow: none;
}

.search-bar__btn {
  align-self: stretch;
  padding-inline: 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.4);
  transition: all 0.25s ease;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 110px;
}

.search-bar__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.55);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.search-bar__btn:active {
  transform: translateY(0px);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.75rem;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat span {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

.scroll-hint:hover {
  color: #fff;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========== Sections ========== */
.section {
  padding: 6rem 0;
}

.section--venda {
  background: var(--bg-alt);
}

.section--aluguel {
  background: var(--bg);
}

.section--imoveis {
  background: var(--bg-alt);
}

.section--contato {
  background: #121a2b;
  color: #fff;
  padding: 6.5rem 0;
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
}

.section__header--center {
  justify-content: center;
  text-align: center;
  align-items: center;
}

.section__header--center .eyebrow::after {
  left: 50%;
  transform: translateX(-50%);
}

.section--contato .section__title {
  color: #fff;
}

.section--contato .section__desc {
  color: rgba(255, 255, 255, 0.72);
}

.section--contato .eyebrow {
  color: #93c5fd;
}

.section--contato .eyebrow::after {
  background: #93c5fd;
}

/* ========== Cards ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.85rem;
  align-items: stretch;
}

.card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  border: var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: cardFadeIn 0.5s ease both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(18, 26, 43, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  z-index: 1;
}

.badge {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge--venda {
  background: rgba(15, 107, 76, 0.75);
}

.badge--aluguel {
  background: rgba(26, 95, 158, 0.75);
}

.badge--novo {
  background: rgba(59, 130, 246, 0.8);
}

.badge--destaque {
  background: rgba(30, 42, 68, 0.75);
}

.card__fav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: var(--glass-border);
  background: var(--fav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #b8bfcc;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  z-index: 1;
}

.card__fav:hover {
  color: #e11d48;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.2);
}

.card__fav .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.card__fav .heart-filled {
  display: none;
}

.card__fav .heart-outline {
  display: block;
}

.card__fav.active .heart-filled {
  display: block;
}

.card__fav.active .heart-outline {
  display: none;
}

.card__fav.active {
  color: #e11d48;
  animation: fav-pulse 0.45s ease;
}

@keyframes fav-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1.08); }
}

.card__body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.card__location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.3;
}

.card__location .icon {
  color: var(--accent);
  width: 1.2em;
  height: 1.2em;
}

.card__price {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.15rem;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.card__price span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.card__title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.35;
  min-height: 2.7em;
}

.card__code {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1e293ba6;
  margin: -0.5rem 0 0.9rem;
}

.card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: auto;
}

.card__features li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card__features .icon {
  color: var(--accent);
  opacity: 1;
  width: 1.2em;
  height: 1.2em;
}

.card__features strong {
  color: var(--navy);
  font-weight: 700;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  cursor: pointer;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  align-self: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.card__link:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.38);
}

.card__link:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.card__link .icon {
  width: 1.15em;
  height: 1.15em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  color: #fff;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-field select option {
  color: #1a1f2e;
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--focus);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  margin-top: 1rem;
  text-align: center;
  color: #86efac;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-note .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.form-note--error {
  color: #fca5a5;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.captcha-question {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  min-width: 8.5rem;
  text-align: center;
}

.captcha-row input {
  flex: 1;
  min-width: 0;
}

.captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.captcha-refresh:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.captcha-refresh .icon {
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 480px) {
  .captcha-row {
    flex-wrap: wrap;
  }
  .captcha-question {
    flex: 1 1 100%;
    white-space: normal;
  }
  .captcha-row input {
    flex: 1;
  }
}

/* ========== Footer ========== */
.footer {
  background: #0c1220;
  color: rgba(255, 255, 255, 0.55);
  padding: 3.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 32ch;
}

.footer__creci {
  margin-top: 0.75rem !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

.footer .logo__text,
.footer .logo__text span {
  color: #fff;
}

.footer .logo__text span {
  opacity: 0.55;
}

.footer__social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer__social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__col h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.footer__col a:hover {
  color: #93c5fd;
}

.footer__col span {
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 0;
  font-size: 0.85rem;
}

/* ========== Modal ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 32, 0.72);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border: var(--glass-border);
  animation: modal-in 0.28s ease;
  overflow: hidden;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: var(--glass-border);
  background: var(--modal-close-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.modal__close:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(18, 26, 43, 0.15);
}

/* Gallery container */
.modal__gallery {
  display: flex;
  flex-direction: row;
  gap: 0;
  min-height: 180px;
  max-height: 320px;
  overflow: hidden;
}

@media (max-width: 599px) {
  .modal__gallery {
    flex-direction: column;
    max-height: 320px;
  }
}

/* Gallery thumbnails - vertical sidebar */
.modal__gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  background: var(--navy-deep);
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  width: 72px;
}

@media (max-width: 599px) {
  .modal__gallery-thumbs {
    flex-direction: row;
    width: 100%;
    height: 64px;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

.modal__gallery-thumbs img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}

@media (max-width: 599px) {
  .modal__gallery-thumbs img {
    width: 80px;
    height: 100%;
  }
}

.modal__gallery-thumbs img:hover {
  opacity: 0.85;
}

.modal__gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--blue);
}

/* Main image area */
.modal__media {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: auto;
  min-height: 200px;
}

@media (max-width: 599px) {
  .modal__media {
    height: 200px;
    min-height: 0;
  }
}

/* Gallery navigation */
.modal__gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: var(--glass-border);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal__gallery-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.modal__gallery-btn .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.modal__gallery-prev {
  left: 12px;
}

.modal__gallery-next {
  right: 12px;
}

.modal__gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.modal__gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: #1e2a44;
  color: #ffffff;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.modal__gallery-dot.active {
  background: #fff;
  border-color: #fff;
}

.modal__gallery-dot:hover {
  border-color: #fff;
}

.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__media .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
}

.modal__body {
  padding: 14px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal__location {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.modal__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.modal__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.modal__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.modal__features li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.modal__features li .icon {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.modal__desc {
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal__actions {
  display: flex;
  margin-top: auto;
  padding-top: 0.6rem;
}

.modal__actions .btn--interest {
  width: 100%;
  text-align: center;
}

body.modal-open {
  overflow: hidden;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .cards,
  .testimonials,
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section__header {
    flex-wrap: wrap;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-bar {
    grid-template-columns: 1fr 1fr;
  }

  .search-bar__btn {
    grid-column: 1 / -1;
  }

  .cta-card__visual {
    opacity: 0.3;
  }
}

@media (max-width: 720px) {
  .header__inner {
    width: 100% !important;
    padding: 0 1rem;
    box-sizing: border-box;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .logo {
    flex-shrink: 0;
    margin-left: 0;
  }

  .logo__img {
    height: 36px;
  }

  .logo__mark {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .logo__text {
    display: none;
  }

  .header__actions {
    flex-shrink: 0;
    margin-right: 0;
    gap: 0.4rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section--contato {
    padding: 3.5rem 0;
  }

  .header {
    width: 100%;
    left: 0;
    right: 0;
  }

  .admin-login-btn,
  .theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  .admin-login-btn .icon,
  .theme-toggle .icon {
    width: 1.1rem;
    height: 1.1rem;
    color: #1a1f2e !important;
  }

  [data-theme="dark"] .admin-login-btn,
  [data-theme="dark"] .theme-toggle {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
  }

  [data-theme="dark"] .admin-login-btn .icon,
  [data-theme="dark"] .theme-toggle .icon {
    color: #f1f5f9 !important;
  }

  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    flex-shrink: 0;
    z-index: 110;
  }

  .menu-toggle span {
    background: var(--navy-deep) !important;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  [data-theme="dark"] .menu-toggle span {
    background: #ffffff !important;
  }

  /* Hamburger transform when menu is open */
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav {
    display: flex !important;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--bg-alt);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-bottom: var(--glass-border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__link {
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    font-weight: 600;
  }

  .nav__cta {
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    padding: 0.85rem;
  }

  .hero {
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 3.5rem;
  }

  .hero__title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    line-height: 1.2;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .search-toggle {
    display: flex;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .search-bar {
    display: none;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 0.75rem;
    padding: 1.25rem;
  }

  .search-bar.open {
    display: grid;
  }

  .search-bar__btn {
    grid-column: auto;
  }

  .search-bar__btn {
    margin-top: 0.5rem;
    min-height: 48px;
  }

  .cards,
  .testimonials,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section__header--center {
    align-items: center;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: 1.25rem 1.5rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .pagination {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pagination__arrow {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .scroll-hint {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    text-align: center;
  }

  .card__title {
    min-height: 0;
  }

  .cta-card {
    padding: 2rem 1.25rem;
  }

  .cta-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-card__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Modal Mobile Responsiveness */
  .modal {
    padding: 12px;
  }

  .modal__dialog {
    max-height: 92vh;
    border-radius: 16px;
  }

  .modal__actions {
    flex-direction: column;
  }

  .modal__actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .modal__body {
    padding: 1rem;
  }

  .modal__title {
    font-size: 1.1rem;
  }

  .modal__price {
    font-size: 1.05rem;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    right: 1.25rem;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    left: 1.25rem;
  }
}

/* ========== Scroll Progress ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: var(--glass-border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(18, 26, 43, 0.15);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35);
  transform: translateY(-3px);
}

.back-to-top .icon {
  width: 1.4rem;
  height: 1.4rem;
}

/* ========== WhatsApp Float ========== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
  z-index: 90;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: whatsappPulse 2s ease infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.55);
  animation: none;
}

.whatsapp-float .icon {
  width: 1.6rem;
  height: 1.6rem;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 6px 32px rgba(59, 130, 246, 0.6), 0 0 0 8px rgba(59, 130, 246, 0.12); }
}

/* ========== Skeleton Loading ========== */
.card__media {
  background: linear-gradient(110deg, #e8e8e8 8%, #f5f5f5 18%, #e8e8e8 33%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s linear infinite;
}

.card__media img {
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .card__media {
  background: linear-gradient(110deg, #1e2636 8%, #252d3d 18%, #1e2636 33%);
  background-size: 200% 100%;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Scroll Reveal Animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Filter transition */
.cards {
  transition: opacity 0.3s ease;
}

.cards.filtering {
  opacity: 0.5;
  pointer-events: none;
}

/* ========== Card Accessible Hover ========== */
.card {
  cursor: pointer;
}

.card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card__preview {
  position: relative;
}

.card__preview::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
}

.card__preview:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ========== Listing Counter ========== */
.listing-counter {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.listing-counter strong {
  color: var(--accent);
  font-weight: 800;
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.pagination__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.pagination__arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.pagination__arrow:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.pagination__arrow:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.pagination__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination__arrow .icon {
  width: 1.2em;
  height: 1.2em;
}

.pagination__info {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--ink-soft);
}

.empty-state .icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  opacity: 0.35;
}

.empty-state p {
  font-size: 1.1rem;
  font-weight: 600;
}

.empty-state[hidden] {
  display: none;
}

/* ========== Active Filter ========== */
.section__header .btn--outline.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-hint,
  .whatsapp-float {
    animation: none;
  }

  .scroll-progress {
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ========== Benefits Grid ========== */
.section--benefits {
  background: var(--bg-alt);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(18, 26, 43, 0.12);
  border-color: var(--accent);
}

.benefit-card__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover .benefit-card__icon-wrap {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.benefit-card__icon-wrap .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.benefit-card__title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}

.benefit-card__text {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ========== Testimonials Carousel ========== */
.section--testimonials {
  background: var(--depoimentos-bg);
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  background: var(--testimonial-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--glass-shadow);
  border: var(--glass-border);
  text-align: center;
  transition: opacity 0.3s ease;
}

.testimonial-card__stars {
  color: #e8a317;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-card__text {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  max-width: 550px;
  margin: 0 auto 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.testimonial-card__author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-soft);
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.testimonial-card__author span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonials-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.testimonials-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.08);
}

.testimonials-btn .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.testimonials-dots {
  display: flex;
  gap: 8px;
}

.testimonials-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #1e2a44;
  color: #ffffff;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.testimonials-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

.testimonials-dot:hover {
  border-color: var(--accent);
}

/* ========== CTA Card ========== */
.section--cta {
  background: var(--bg-alt);
  padding: 5rem 0;
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.cta-card__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.cta-card__eyebrow {
  color: #93c5fd;
}

.cta-card__eyebrow::after {
  background: #93c5fd;
}

.cta-card__title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}

.cta-card__title em {
  font-style: italic;
  font-weight: 700;
  color: #93c5fd;
}

.cta-card__text {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  max-width: 42ch;
  line-height: 1.6;
}

.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-card__visual {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-card__illustration {
  position: relative;
  z-index: 2;
  max-width: 95%;
  height: auto;
  max-height: 90%;
  border-radius: 24px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.cta-card__illustration:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ========== Contact Grid ========== */
.section--contact {
  background: #121a2b;
  color: #fff;
  padding: 6.5rem 0;
}

.section--contact .section__title {
  color: #fff;
}

.section--contact .section__desc {
  color: rgba(255, 255, 255, 0.72);
}

.section--contact .eyebrow {
  color: #93c5fd;
}

.section--contact .eyebrow::after {
  background: #93c5fd;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-list__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-list li:hover .contact-list__icon {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(147, 197, 253, 0.2);
}

.contact-list__icon .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.contact-list strong {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.contact-list a,
.contact-list span {
  color: #fff;
  font-weight: 600;
}

.contact-list a:hover {
  color: #93c5fd;
}

.contact-form {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.contact-form__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.contact-form__header .icon {
  width: 1.4rem;
  height: 1.4rem;
  color: #93c5fd;
}

.contact-form__header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ========== Dark theme â€” element overrides (WTorres palette) ========== */
[data-theme="dark"] .theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .logo__mark {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

[data-theme="dark"] .hero__bg::after {
  background: radial-gradient(ellipse 60% 50% at 75% 30%, rgba(59, 130, 246, 0.15), transparent 55%);
}

[data-theme="dark"] .card__link {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .card__code {
  color: rgba(148, 163, 184, 0.75);
}

[data-theme="dark"] .card__link:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.38);
}

[data-theme="dark"] .card__link:active {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .footer__social a:hover {
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

[data-theme="dark"] .scroll-progress {
  background: linear-gradient(90deg, var(--accent), #f59e0b);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

[data-theme="dark"] .back-to-top:hover {
  background: var(--accent);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .pagination__arrow:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

[data-theme="dark"] .pagination__arrow:active:not(:disabled) {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .section__header .btn--outline.active {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

[data-theme="dark"] .badge--novo {
  background: rgba(59, 130, 246, 0.85);
}

[data-theme="dark"] .card__fav:hover {
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.25);
}

[data-theme="dark"] .whatsapp-float {
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
}

[data-theme="dark"] .whatsapp-float:hover {
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.6);
}

[data-theme="dark"] .section--contact {
  background: #0b1120;
}

[data-theme="dark"] .contact-list__icon {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.15);
  color: #f59e0b;
}

[data-theme="dark"] .contact-list li:hover .contact-list__icon {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .contact-list a:hover {
  color: #fbbf24;
}

[data-theme="dark"] .search-bar__field:hover,
[data-theme="dark"] .search-bar__field:focus-within {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
}

[data-theme="dark"] .modal__dialog {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .card__features .icon {
  color: var(--accent);
  opacity: 0.6;
}

[data-theme="dark"] .listing-counter strong {
  color: #f59e0b;
}

[data-theme="dark"] .form-field input:focus,
[data-theme="dark"] .form-field select:focus,
[data-theme="dark"] .form-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .benefit-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.12);
}

/* ========== Small screens ========== */
@media (max-width: 480px) {
  .modal__media {
    height: 200px;
  }

  .modal__body {
    padding: 0.85rem;
  }

  .modal__title {
    font-size: 1rem;
  }

  .modal__price {
    font-size: 0.95rem;
  }

  .modal__features li {
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
  }

  .modal__desc {
    font-size: 0.8rem;
    line-height: 1.45;
    -webkit-line-clamp: 5;
  }

  .btn--interest {
    padding: 0.75rem 1.2rem;
    font-size: 0.85rem;
    width: 100%;
  }

  .container {
    padding-inline: 1rem;
  }
}

/* ========== Toast Message ========== */
.toast-message {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #3b82f6;
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 300;
  white-space: nowrap;
}

.toast-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
