/* ===========================
   Pousada do Rancho - CSS
   =========================== */

/* --- Variables & Theme --- */
:root {
  /* Alisal Ranch Inspired Palette */
  --c-blue: #0A1B29;         /* Azul Profundo (Base Dark) */
  --c-blue-light: #16324A;   
  --c-orange: #C05830;       /* Laranja quente / Terra */
  --c-orange-hover: #A04A28; 
  --c-sand: #EBE5DB;         /* Areia / Bege - Fundo secundário */
  --c-sand-light: #F7F5F0;   /* Areia Clara - Fundo principal */
  --c-green: #596555;        /* Verde Natural */
  --c-white: #FCFAEF;        /* Branco quente */
  --c-text: #2B2A27;         /* Texto Base Escuro */
  --c-text-light: #706F6C;   /* Texto Secundário */
  
  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Spacing */
  --section-pad: 120px 0;
  --section-pad-mobile: 80px 0;
  --radius: 4px;
  
  /* Layout */
  --container: 1280px;
}

/* --- Reset & Global --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background-color: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--c-blue);
  font-weight: 400;
  line-height: 1.2;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.section-tag {
  display: block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--c-orange);
  margin-bottom: 1rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* --- Utilities --- */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad);
}

.bg-sand {
  background-color: var(--c-sand-light);
}

.bg-sand-dark {
  background-color: var(--c-sand);
}

.center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all 0.4s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--c-orange);
  color: var(--c-white);
}

.btn-primary:hover {
  background-color: var(--c-orange-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--c-blue);
  color: var(--c-blue);
}

.btn-outline:hover {
  background-color: var(--c-blue);
  color: var(--c-white);
}

.btn-text {
  padding: 0;
  color: var(--c-orange);
  text-transform: none;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0;
  border-bottom: 1px solid transparent;
}

.btn-text:hover {
  border-bottom-color: var(--c-orange);
}

.btn-large {
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.btn-hero-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--c-white);
  border: 1px solid rgba(252, 250, 239, 0.6);
  backdrop-filter: blur(4px);
  margin-top: 4rem; /* Empurra o botão mais para baixo */
  transition: all 0.4s ease;
}

.btn-hero-outline:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: var(--c-white);
  border-color: var(--c-white);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.4s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header.scrolled .nav-list a {
  color: var(--c-blue);
  text-shadow: none;
  font-weight: 500;
}

.header.scrolled .nav-list a:hover {
  color: var(--c-orange);
}

.header.scrolled .menu-toggle {
  color: var(--c-blue);
}

.header.scrolled .header-logo {
  max-height: 55px;
  filter: none;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--c-white);
  font-weight: 500;
}

.logo-list-item {
  margin: 0 2rem;
}

.desktop-cta {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-header-logo, .mobile-cta-item {
  display: none;
}

.header-logo {
  max-height: 140px;
  width: auto;
  transition: all 0.4s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

.nav-list {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
}

.nav-list a {
  color: var(--c-white);
  font-size: 1.1rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.nav-list a:hover {
  color: var(--c-orange);
  text-shadow: none;
}

.btn-header {
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--c-white);
  font-size: 1.8rem;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 115vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  text-align: center;
}

.hero-bg, .cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background-color: #000;
}

.hero-bg img, .cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 90%;
  transform: scale(1.02);
}

.hero-overlay, .cta-overlay {
  display: none;
}

.hero-content {
  max-width: 900px;
  padding-top: 80px;
}

.hero-content.minimalist {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-top: 10vh;
}

.hero-minimal-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
}

.hero-title-minimal {
  color: var(--c-white);
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  margin: 0;
  text-align: center;
  line-height: 1.1;
}

.hero-logo {
  max-height: 140px;
  width: auto;
  margin: 0 auto 1.5rem auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* --- Vector Arts --- */
.vector-art-img {
  width: 70px;
  height: auto;
  margin-bottom: 1.2rem;
  opacity: 0.85;
  mix-blend-mode: multiply;
  filter: invert(38%) sepia(35%) saturate(1478%) hue-rotate(342deg) brightness(97%) contrast(92%);
}

.section-header.center .vector-art-img {
  margin: 0 auto 1.5rem auto;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --- Lencois Section --- */
.lencois-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.lencois-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 450px;
  gap: 20px;
}

.lencois-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.lencois-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.lencois-item:hover img {
  transform: scale(1.05);
}

.lencois-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(10, 27, 41, 0.8) 0%, transparent 100%);
  color: var(--c-white);
}

.lencois-item-content h3 {
  color: var(--c-white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.lencois-item-content p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.8;
}

/* --- Accommodations --- */
.section-header {
  margin-bottom: 4rem;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.room-card {
  background: var(--c-sand-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s ease;
}

.room-card:hover {
  transform: translateY(-10px);
}

.room-img-wrapper {
  height: 300px;
  overflow: hidden;
}

.room-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.room-card:hover .room-img-wrapper img {
  transform: scale(1.08);
}

.room-info {
  padding: 2.5rem 2rem;
}

.room-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.room-info p {
  font-size: 0.95rem;
  color: var(--c-text-light);
  margin-bottom: 2rem;
}

/* --- Experiences Pousada --- */
.experiences-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.experiences-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.exp-img {
  position: relative;
}

.exp-img img {
  height: 450px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.exp-img:nth-child(2) {
  transform: translateY(40px);
}

.exp-img span {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: var(--c-white);
  padding: 0.8rem 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--c-blue);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- Amenities --- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}

.amenity-item i {
  font-size: 3rem;
  color: var(--c-green);
  margin-bottom: 1.5rem;
}

.amenity-item h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.amenity-item p {
  font-size: 0.9rem;
  color: var(--c-text-light);
}

/* --- Gallery --- */
.gallery-masonry {
  columns: 3;
  column-gap: 20px;
}

.gallery-masonry img {
  margin-bottom: 20px;
  border-radius: var(--radius);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-masonry img:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.testimonials {
  background-color: var(--c-blue);
  color: var(--c-white);
}

.testimonials .section-title {
  color: var(--c-white);
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card i {
  font-size: 2.5rem;
  color: var(--c-orange);
  margin-bottom: 1.5rem;
  opacity: 0.8;
  display: block;
}

.testimonial-text {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
  color: rgba(252, 250, 239, 0.9);
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-orange);
}

/* --- Location --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-details {
  margin-top: 2rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.contact-details i {
  font-size: 1.5rem;
  color: var(--c-orange);
}

.map-placeholder iframe {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* --- Final CTA --- */
.final-cta {
  position: relative;
  color: var(--c-white);
  padding: 180px 0;
  overflow: hidden;
}

.cta-title {
  color: var(--c-white);
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

/* --- Footer --- */
.footer {
  background-color: var(--c-blue);
  color: rgba(252, 250, 239, 0.7);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(252, 250, 239, 0.1);
}

.footer-logo {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--c-white);
  margin-bottom: 1.5rem;
}

.footer-logo-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  max-height: 120px;
  width: auto;
  filter: brightness(0) invert(1);
}

.cadastur-logo {
  max-height: 42px;
  width: auto;
}

.footer h4 {
  color: var(--c-white);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer ul li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer ul i {
  color: var(--c-orange);
  font-size: 1.2rem;
  margin-top: 2px;
}

.footer a:hover {
  color: var(--c-white);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(252, 250, 239, 0.1);
  color: var(--c-white);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--c-orange);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
  }
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* --- Animations (Reveal on Scroll) --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* --- Modals --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 27, 41, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--c-white);
  width: 90%;
  max-width: 1000px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transform: translateY(30px);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--c-blue);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: var(--c-white);
}

.modal-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  flex: 1;
  overflow-y: auto;
}

.modal-carousel {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  min-height: 300px;
}

.modal-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.modal-carousel img.active {
  opacity: 1;
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--c-blue);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: var(--c-white);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.modal-info {
  padding: 3rem;
  background: var(--c-sand-light);
  display: flex;
  flex-direction: column;
}

.modal-info h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.modal-tag {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--c-orange);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  display: block;
}

.modal-info p {
  font-size: 1.05rem;
  color: var(--c-text-light);
  margin-bottom: 2rem;
}

.modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
  flex: 1;
}

.modal-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--c-text);
}

.modal-features i {
  color: var(--c-green);
  font-size: 1.3rem;
}

.btn-modal {
  width: 100%;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  
  .about-grid, .experiences-layout, .location-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-img { height: 450px; }
  
  .lencois-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .gallery-masonry { columns: 2; }
}

@media (max-width: 768px) {
  .section { padding: var(--section-pad-mobile); }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--c-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.4s ease;
    z-index: 1050;
  }
  
  .nav-menu.active { left: 0; }
  
  .nav-list {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav-list a {
    color: var(--c-white);
  }
  
  .btn-header { display: none; }
  
  .menu-toggle { display: block; }
  
  .header-container { justify-content: space-between; }
  .desktop-cta { display: none; }
  .logo-list-item { display: none; }
  .mobile-header-logo { display: block; margin: 0 auto; }
  .mobile-cta-item { display: block; }
  .header-logo { max-height: 70px; }
  .header.scrolled .header-logo { max-height: 55px; }

  .hero-logo { max-height: 100px; }
  .hero-title { font-size: 2.8rem; }
  .hero-title-minimal { font-size: 2.5rem; }
  .section-title { font-size: 2.2rem; }
  .lencois-grid, .rooms-grid, .amenities-grid, .footer-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .experiences-gallery { grid-template-columns: 1fr; }
  .exp-img:nth-child(2) { transform: translateY(0); margin-top: 20px; }
  
  .gallery-masonry { columns: 1; }
  
  .testimonial-text { font-size: 1.05rem; }
  
  .modal-content {
    grid-template-columns: 1fr;
  }
  .modal-carousel {
    height: 300px;
  }
  .modal-carousel img.active {
    position: absolute;
  }
  .modal-info {
    padding: 2rem;
  }
}
