/* ========================================================
   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: fadeIn 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: fadeIn 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 fadeIn {
  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;
  }
}