/* ========================================================
   RANCHO PARAÍSO - CSS RESPONSIVO PRINCIPAL
   Versão 3.0 - Simplificado e otimizado
   ======================================================== */

/* ===== RESET GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-body);
  color: var(--rp-text);
  background: var(--rp-bege);
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== NAVEGAÇÃO RESPONSIVA ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rp-marrom);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px var(--rp-shadow-strong);
  width: 100%;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--rp-white);
  text-decoration: none;
  z-index: 102;
}

.brand img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  border-radius: 50%;
  background: white;
  margin-left: 20px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  display: none;
}

.brand .title {
  font-family: var(--font-family-sections);
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.brand .subtitle {
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  opacity: 0.9;
}

/* Menu Hambúrguer */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 102;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--rp-white);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu Desktop */
.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--rp-white);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  transition: 0.2s ease;
  font-size: clamp(1.0rem, 1.5vw, 0.95rem);
  white-space: nowrap;
}

.menu a:hover,
.menu a:focus {
  background: #7a4b2f;
  outline: none;
}

/* ===== HERO SECTION RESPONSIVA ===== */
header.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--rp-white);
  background: linear-gradient(rgba(26,37,43,.55), rgba(26,37,43,.55)),
              url('../images/banner_4.jpeg') center/cover no-repeat;
  background-attachment: fixed;
  padding: var(--spacing-2xl) var(--spacing-md);
}

/* Desabilitar background-attachment fixed em mobile para melhor performance */
@media (max-width: 768px) {
  header.hero {
    background-attachment: scroll;
  }
}

.hero-inner {
  max-width: 1100px;
  width: 100%;
  animation: fadeInSlide 0.7s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(44,166,164,.85);
  color: var(--rp-white);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  box-shadow: 0 8px 24px rgba(44,166,164,.35);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-family-sections);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  line-height: 1.1;
  text-shadow: 0 8px 24px rgba(0,0,0,.45);
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: clamp(0.95rem, 2.4vw, 1.35rem);
  opacity: 0.95;
  margin-bottom: 1.5rem;
  padding: 0 var(--spacing-md);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  max-width: 1000px;
  margin: 1.25rem auto 0;
  padding: 0 var(--spacing-sm);
}

.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  padding: clamp(0.6rem, 1.5vw, 0.85rem);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: 0.2s ease;
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  text-align: center;
}

.hero-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.15);
}

.hero-card i {
  color: #FFD700;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-bottom: 0.35rem;
  display: block;
}

.cta {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--rp-verde), #539b50);
  color: var(--rp-white);
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 3vw, 1.4rem);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(58,107,53,.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.cta:hover,
.cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(58,107,53,.45);
  outline: none;
}

/* ===== CONTAINER E SEÇÕES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 3vw, 1rem);
  width: 100%;
}

section {
  padding: clamp(2rem, 5vw, 3rem) 0;
  animation: fadeInSlide 0.6s ease-out;
}

.card {
  background: var(--rp-white);
  border-radius: var(--radius-lg);
  border: 1px solid #e9efe8;
  box-shadow: 0 12px 30px var(--rp-shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  width: 100%;
  overflow: hidden;
}

.section-title {
  text-align: center;
  font-family: var(--font-family-sections);
  color: var(--rp-marrom);
  font-size: clamp(1.4rem, 3.5vw, 2.3rem);
  margin-bottom: 1.5rem;
  position: relative;
  word-wrap: break-word;
}

.section-title::after {
  content: "";
  display: block;
  width: min(110px, 40%);
  height: 4px;
  border-radius: 3px;
  background: var(--rp-verde);
  margin: 0.9rem auto 0;
  box-shadow: 0 6px 14px rgba(58,107,53,.35);
}

/* ===== GRIDS RESPONSIVOS ===== */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: 1.25rem;
  width: 100%;
}

.detail-card {
  background: #f6fbf7;
  border: 1px solid #ddeadf;
  border-radius: var(--radius-md);
  text-align: center;
  padding: clamp(0.85rem, 2vw, 1.25rem);
  transition: transform 0.2s ease;
}

.detail-card:hover {
  transform: translateY(-2px);
}

.detail-card i {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--rp-verde);
  margin-bottom: 0.5rem;
}

.detail-card h3 {
  color: var(--rp-verde);
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.detail-card p {
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  line-height: 1.5;
}

/* ===== GALERIA RESPONSIVA ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  margin: 1.25rem 0 0;
  width: 100%;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 18px var(--rp-shadow);
  transition: 0.25s ease;
  background: #dfe7e5;
  cursor: pointer;
  border: none;
  width: 100%;
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
  padding: clamp(0.7rem, 2vw, 0.9rem) clamp(0.8rem, 2vw, 1rem);
  text-align: center;
}

.gallery-overlay h3 {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  margin-bottom: 0.2rem;
}

.gallery-overlay p {
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  opacity: 0.9;
}

.gallery-count {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  font-weight: 600;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ===== LOCALIZAÇÃO ===== */
.location-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-top: 1rem;
  width: 100%;
}

.location-card {
  background: #e4f6f5;
  border: 1px solid #c7ecea;
  text-align: center;
  border-radius: var(--radius-md);
  padding: clamp(0.75rem, 2vw, 1rem);
}

.location-card i {
  color: var(--rp-azul);
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  margin-bottom: 0.45rem;
}

.location-card h3 {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: 0.3rem;
  color: var(--rp-text);
}

.location-card p {
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

/* Mapa Responsivo */
.map-container {
  height: clamp(280px, 50vw, 380px);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
  width: 100%;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== FORMULÁRIO RESPONSIVO ===== */
.contact-form {
  width: 100%;
}

.contact-form .form-group {
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--rp-verde);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: clamp(0.7rem, 1.5vw, 0.85rem);
  font-size: clamp(0.9rem, 2vw, 1rem);
  border: 2px solid #cfe6d1;
  border-radius: 10px;
  transition: 0.2s;
  background: #fffdfb;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--rp-verde);
  box-shadow: 0 0 0 3px rgba(58,107,53,.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.whatsapp-btn {
  background: linear-gradient(135deg, var(--rp-verde), #539b50);
  color: var(--rp-white);
  border: none;
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  border-radius: 999px;
  cursor: pointer;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 700;
  font-family: var(--font-family-sections);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
  box-shadow: 0 10px 24px rgba(58, 107, 53, 0.35);
  position: relative;
  overflow: hidden;
  min-width: 150px;
}

.whatsapp-btn::before {
  content: '';
  margin-right: 0.25rem;
  font-size: 1.1em;
}

.whatsapp-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(58, 107, 53, 0.45);
  background: linear-gradient(135deg, #539b50, var(--rp-verde));
}

.whatsapp-btn:hover::after {
  width: 300px;
  height: 300px;
}

.whatsapp-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(58, 107, 53, 0.35);
}

/* ===== RODAPÉ RESPONSIVO ===== */
footer {
  background: var(--rp-dark);
  color: #d6e2e6;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2rem) 0;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 2rem;
  padding: 0 clamp(0.75rem, 3vw, 1rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.25rem);
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 0.6rem;
  font-family: var(--font-family-sections);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.footer-section p,
.footer-section a {
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  line-height: 1.6;
}

.footer-section a {
  color: #c7d6db;
  text-decoration: none;
}

.footer-section a:hover {
  color: #fff;
}

.terms-link {
	text-align: center;
	font-size: clamp(0.75rem, 1.5vw, 0.85rem);
	color: white;
}
.terms-link:hover {
	color: #539b50;
	text-decoration: none;
}
.terms-link:visitied {
	margin-right: 0.25rem;
	color: white;
}

/* ===== MODAL DE AVISO - REDESIGN ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(26, 37, 43, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
  /* Flexbox para centralizar */
  align-items: center;
  justify-content: center;
}

.modal[aria-hidden="false"],
.modal[style*="display: block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfa 100%);
  margin: auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Garantir que fique centralizado */
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title {
  background: linear-gradient(135deg, var(--rp-marrom), #7a4b2f);
  color: var(--rp-white);
  padding: 1.5rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.modal-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3Cpattern id="a" patternUnits="userSpaceOnUse" width="20" height="20"%3E%3Ccircle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"%2F%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100" height="100" fill="url(%23a)"%2F%3E%3C/svg%3E');
  opacity: 0.5;
}

.modal-title h2 {
  font-family: var(--font-family-sections);
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-title h2::before {
  content: '⚠️';
  font-size: 1.2em;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.modal-body {
  padding: 2rem 1.5rem;
}

#modalAvisoDescricao,
#modalPreencherForm #modalAvisoDescricao {
  font-family: var(--font-family-body);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.6;
  color: var(--rp-text);
  margin: 0 0 1.5rem 0;
  text-align: center;
}

/* Ícone decorativo para o corpo do modal */
#modalAviso #modalAvisoDescricao::before {
  content: '📅';
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

#modalPreencherForm #modalAvisoDescricao::before {
  content: '📝';
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.modal-ok-btn {
  background: linear-gradient(135deg, var(--rp-verde), #539b50);
  color: var(--rp-white);
  border: none;
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  border-radius: 999px;
  cursor: pointer;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 700;
  font-family: var(--font-family-sections);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
  box-shadow: 0 10px 24px rgba(58, 107, 53, 0.35);
  position: relative;
  overflow: hidden;
  min-width: 150px;
}

.modal-ok-btn::before {
  content: '✓';
  margin-right: 0.25rem;
  font-size: 1.1em;
}

.modal-ok-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.modal-ok-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(58, 107, 53, 0.45);
  background: linear-gradient(135deg, #539b50, var(--rp-verde));
}

.modal-ok-btn:hover::after {
  width: 300px;
  height: 300px;
}

.modal-ok-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(58, 107, 53, 0.35);
}

/* Botão de fechar X (caso queira adicionar) */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--rp-white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Fallback para centralização usando transform */
@supports not (display: flex) {
  .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===== VALIDAÇÃO DE FORMULÁRIO ===== */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #d93025;
  background-color: #fff5f5;
}

.form-group.error label {
  color: #d93025;
}

.form-error-message {
  color: #d93025;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.error .form-error-message {
  display: block;
  animation: slideDown 0.3s ease;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
  border-color: #2e7d32;
}

.form-group.success label {
  color: #2e7d32;
}

/* Indicador de campo obrigatório */
.contact-form label::after {
  content: ' *';
  color: #d93025;
  font-weight: normal;
}

.contact-form label[for="mensagem"]::after,
.contact-form label[for="cupom"]::after {
  content: '';
}

/* ===== RESPONSIVIDADE DOS MODAIS ===== */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: none;
    margin: 1rem;
  }
  
  .modal-title {
    padding: 1.25rem;
  }
  
  .modal-title h2 {
    font-size: 1.2rem;
  }
  
  .modal-body {
    padding: 1.5rem 1rem;
  }
  
  #modalAvisoDescricao,
  #modalFormDescricao {
    font-size: 0.95rem;
  }
  
  #modalAvisoDescricao::before,
  #modalFormDescricao::before {
    font-size: 2.5rem;
  }
  
  .modal-ok-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .modal-title h2::before {
    display: none;
  }
  
  .modal-title h2 {
    font-size: 1.1rem;
  }
  
  .modal-body {
    padding: 1.25rem 0.75rem;
  }
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
  .modal {
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  .modal-content {
    background: linear-gradient(135deg, #1a252b 0%, #24343a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  #modalAvisoDescricao,
  #modalFormDescricao {
    color: #d6e2e6;
  }
}

/* ===== MEDIA QUERIES ESPECÍFICAS =====

/* Tablets e dispositivos médios */
@media (max-width: 992px) {
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(80%, 320px);
    /*height: 100vh;*/
    background: var(--rp-marrom);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 0.5rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 101;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    align-items: flex-end;
  }
  
  .menu.active {
    right: 0;
  }
  
  .menu a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem 1rem;
    text-align: right;
    width: 100%;
    gap: 0.5rem;
    border-radius: 10px 0 0 10px;
    margin-right: -1.5rem;
    padding-right: 2.5rem;
  }
  
  .menu a i {
    order: 2;
    margin-left: 0.5rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-features {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* Smartphones */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }
  
  .hero-features {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .details-grid,
  .location-info {
    grid-template-columns: 1fr;
  }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
  .brand .subtitle {
    display: none;
  }
  
  .hero {
    min-height: 50vh;
  }
  
  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Landscape em smartphones */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: 90vh;
  }
  
  .hero-features {
    max-height: 40vh;
    overflow-y: auto;
  }
}

/* Desktop grande */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-inner {
    max-width: 1200px;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ACESSIBILIDADE ===== */

/* Focus visível para navegação por teclado */
*:focus-visible {
  outline: 3px solid var(--rp-azul);
  outline-offset: 2px;
}

/* Remover outline para cliques do mouse */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
  :root {
    --rp-shadow: rgba(0,0,0,.2);
    --rp-shadow-strong: rgba(0,0,0,.4);
  }
  
  .card {
    border-width: 2px;
  }
}

/* Preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ===== PRINT ===== */
@media print {
  .topbar,
  .whatsapp-float,
  .menu-toggle,
  .cta,
  .whatsapp-btn {
    display: none !important;
  }
  
  header.hero {
    min-height: auto;
    background: none;
    color: var(--rp-text);
  }
  
  .hero-title,
  .section-title {
    color: var(--rp-text);
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #000;
    break-inside: avoid;
  }
  
  section {
    page-break-inside: avoid;
  }
}

/* ===== SUPORTE PARA DISPOSITIVOS TOUCH ===== */
@media (hover: none) and (pointer: coarse) {
  .hero-card:active,
  .detail-card:active,
  .gallery-item:active {
    transform: scale(0.98);
  }
  
  /* Aumentar área de toque */
  .menu a,
  .cta,
  .whatsapp-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ===== CORREÇÕES PARA iOS ===== */
@supports (-webkit-touch-callout: none) {
  /* Corrigir height 100vh no Safari iOS */
  .menu {
    height: -webkit-fill-available;
  }
  
  /* Prevenir zoom em inputs */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}















/* ===== INFRAESTRUTURA & COMODIDADES – ESTILO PREMIUM ===== */

/* Título das categorias (subseções) */
.subsection-title {
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
  font-family: var(--font-family-sections);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--rp-verde);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.subsection-title::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rp-azul), var(--rp-verde));
  box-shadow: 0 4px 10px rgba(44, 166, 164, 0.35);
}

/* Ajuste de hierarquia tipográfica dentro dos cards */
.detail-card h4 {
  color: var(--rp-verde);
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Cards da seção Infraestrutura com estilo mais premium */
#infraestrutura .detail-card {
  background: #fdfcf9;
  border-color: #dfe8dc;
  box-shadow: 0 10px 24px var(--rp-shadow);
  transform: translateY(0);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

#infraestrutura .detail-card i {
  font-size: clamp(1.5rem, 3.1vw, 1.9rem);
  color: var(--rp-verde);
  margin-bottom: 0.6rem;
}

/* Hover suave, sem exagero */
#infraestrutura .detail-card:hover {
  transform: translateY(-4px);
  background-color: #ffffff;
  border-color: #cfdcc9;
  box-shadow: 0 16px 32px var(--rp-shadow-strong);
}

/* Animação de entrada gentil para os cards da infraestrutura */
@keyframes infraFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#infraestrutura .details-grid .detail-card {
  animation: infraFadeUp 0.6s ease-out both;
}

/* Pequenos delays para dar sensação de movimento em cascata */
#infraestrutura .details-grid .detail-card:nth-child(2) {
  animation-delay: 0.05s;
}
#infraestrutura .details-grid .detail-card:nth-child(3) {
  animation-delay: 0.1s;
}
#infraestrutura .details-grid .detail-card:nth-child(4) {
  animation-delay: 0.15s;
}

/* Mobile: mantém o visual premium mas com menos "peso" */
@media (max-width: 768px) {
  #infraestrutura .detail-card {
    box-shadow: 0 8px 18px var(--rp-shadow);
  }
}

/* ===== BADGES DE DESTAQUE – INFRAESTRUTURA ===== */

.infra-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.5rem 0 1.5rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 14px var(--rp-shadow);
}

.badge-pill i {
  font-size: 0.9rem;
}

.badge-primary {
  background: linear-gradient(135deg, var(--rp-azul), var(--rp-verde));
  color: #ffffff;
}

.badge-secondary {
  background: #fff7e5;
  color: var(--rp-text);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Chip interno para o card de Wi-Fi (home office) */

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--rp-secondary-color-light, rgba(247, 183, 51, 0.12));
  color: var(--rp-text);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.tag-chip i {
  font-size: 0.85rem;
}

/* Responsivo: badges não estourarem em telas menores */

@media (max-width: 768px) {
  .infra-badges {
    gap: 0.4rem;
  }

  .badge-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
  }
}

/* =====================================================================
   IMÓVEL À VENDA — faixa, selo no hero, seção, card do corretor e FAB
   ===================================================================== */

/* ----- Faixa fixa no topo ----- */
.venda-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #8C5E3C, #a8763f);
  color: var(--rp-white);
  text-decoration: none;
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  line-height: 1.35;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  transition: filter 0.2s ease;
}

.venda-bar:hover,
.venda-bar:focus {
  filter: brightness(1.08);
  outline: none;
}

.venda-bar i {
  font-size: 0.95em;
}

.venda-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ----- Selo no hero ----- */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero-badges .hero-badge {
  margin-bottom: 0;
}

.hero-badge-venda {
  background: rgba(140, 94, 60, 0.92);
  box-shadow: 0 8px 24px rgba(140, 94, 60, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-badge-venda:hover,
.hero-badge-venda:focus {
  transform: translateY(-2px);
  filter: brightness(1.1);
  outline: none;
}

/* ----- Item "À Venda" na nav ----- */
.menu-venda {
  color: #ffd9a8 !important;
  font-weight: 700;
}

/* ----- Seção À Venda ----- */
.venda-card {
  border-color: rgba(140, 94, 60, 0.28);
}

.venda-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: stretch;
}

.venda-info {
  display: flex;
  flex-direction: column;
}

/* Selo e aviso de valor na mesma linha, no topo da coluna */
.venda-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

/* No topo o aviso é texto simples: sem caixa, para não competir com o selo */
.venda-topo .venda-valor {
  flex: 1 1 260px;
  margin: 0;
  background: none;
  border-left: none;
  border-radius: 0;
  padding: 0;
  color: #6b6357;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: right;
}

.venda-topo .venda-valor strong {
  color: var(--rp-marrom);
}

.venda-selo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(140, 94, 60, 0.12);
  color: var(--rp-marrom);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.venda-titulo {
  font-family: var(--font-family-sections);
  color: var(--rp-marrom);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin: 0.75rem 0 0.6rem;
}

.venda-texto {
  color: var(--rp-text);
  font-size: var(--font-size-body-md);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.venda-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.55rem 1rem;
}

.venda-lista li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--font-size-body-sm);
  color: var(--rp-text);
}

.venda-lista i {
  color: var(--rp-verde);
  width: 1.15rem;
  text-align: center;
  flex-shrink: 0;
}

.venda-valor {
  background: var(--rp-bege);
  border-left: 4px solid var(--rp-marrom);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: var(--font-size-body-sm);
  color: var(--rp-text);
  margin: 0;
}

.venda-valor i {
  color: var(--rp-marrom);
  margin-right: 0.4rem;
}

/* ----- Card do corretor ----- */
/* Faixa do corretor, dentro da coluna de texto: foto | dados | botões */
.corretor-faixa {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.35rem);
  background: var(--rp-bege);
  border: 1px solid rgba(140, 94, 60, 0.22);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 1.35rem);
  box-shadow: 0 10px 26px var(--rp-shadow);
  margin-top: clamp(1.1rem, 2.5vw, 1.5rem);
}

.corretor-foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--rp-white);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.corretor-identidade {
  min-width: 0;
}

.corretor-nome {
  font-family: var(--font-family-sections);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--rp-marrom);
  margin: 0 0 0.15rem;
}

.corretor-cargo {
  font-size: var(--font-size-body-sm);
  color: var(--rp-text);
  margin: 0 0 0.5rem;
}

.corretor-creci {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--rp-white);
  border: 1px solid rgba(140, 94, 60, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rp-marrom);
  letter-spacing: 0.03em;
  margin: 0 0 1.1rem;
}

.corretor-acoes {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.corretor-acoes .corretor-btn {
  white-space: nowrap;
}

.corretor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--font-size-body-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.corretor-btn-whats {
  background: #25D366;
  color: var(--rp-white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.corretor-btn-tel {
  background: var(--rp-white);
  color: var(--rp-marrom);
  border: 2px solid var(--rp-marrom);
}

.corretor-btn:hover,
.corretor-btn:focus {
  transform: translateY(-2px);
  outline: none;
}

.corretor-btn-tel:hover,
.corretor-btn-tel:focus {
  background: var(--rp-marrom);
  color: var(--rp-white);
}

.corretor-obs {
  font-size: 0.78rem;
  color: #6b6357;
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

/* ----- Botão flutuante do corretor ----- */
.venda-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: #25D366;
  color: var(--rp-white);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.venda-float i {
  font-size: 1.35rem;
}

.venda-float:hover,
.venda-float:focus {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  outline: none;
}

/* ----- Responsivo ----- */
@media (max-width: 900px) {
  .venda-grid {
    grid-template-columns: 1fr;
  }

}

/* Telas muito estreitas (≈320px): faixa enxuta, sem quebrar em 3 linhas */
@media (max-width: 400px) {
  .venda-bar {
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.72rem;
  }

  .venda-bar-extra {
    display: none;
  }

  .venda-bar-link {
    padding: 0.15rem 0.55rem;
  }
}

/* Em telas estreitas a foto sai da linha e tudo centraliza */
@media (max-width: 560px) {
  .corretor-faixa {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .corretor-acoes {
    width: 100%;
  }
}

/* Com o item "À Venda" o menu ganhou 8 itens: comprime o espaçamento
   em telas intermediárias para manter tudo em uma única linha. */
@media (min-width: 993px) and (max-width: 1500px) {
  .menu a {
    padding: 0.55rem 0.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  /* No mobile o aviso de valor volta a alinhar à esquerda:
     alinhado à direita a última linha ficava solta. */
  .venda-topo .venda-valor {
    text-align: left;
  }

  /* Badges do hero empilham para não forçar rolagem lateral */
  .hero-badges {
    flex-direction: column;
    gap: 0.5rem;
  }

  .corretor-foto {
    width: 120px;
    height: 120px;
  }

  /* No mobile o botão vira apenas ícone, para não cobrir conteúdo */
  .venda-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }

  .venda-float .venda-float-texto {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .venda-bar,
  .hero-badge-venda,
  .corretor-btn,
  .venda-float {
    transition: none;
  }
}

/* ----- Vídeo de apresentação na seção À Venda (coluna lateral) ----- */
.venda-video {
  text-align: center;
}

.venda-video-titulo {
  font-family: var(--font-family-sections);
  color: var(--rp-marrom);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* O vídeo é vertical (9:16): ocupa a coluna sem estourar */
.venda-video-wrapper {
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px var(--rp-shadow-strong);
  background: #000;
  line-height: 0;
}

.venda-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

.venda-video-aviso {
  font-size: 0.78rem;
  color: #6b6357;
  margin: 0.85rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 480px) {
  .venda-video-wrapper {
    max-width: 100%;
  }
}
