/* Estilos para a nova página inicial das Cabanas Perau */

/* Estilos gerais */
:root {
  --primary-color: #555555;
  --secondary-color: #151515;
  --light-color: #f4f4f4;
  --dark-color: #333333;
  --white-color: #ffffff;
}

body {
  font-family: "Raleway", sans-serif;
  color: var(--secondary-color);
  overflow-x: hidden;
}

section {
  padding: 80px 0;
}

.active a {
  border-bottom: 3px solid var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
  border-color: var(--white-color);
  color: var(--white-color);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
  font-size: 18px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: "Elsie", sans-serif;
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.section-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--dark-color);
}

.highlight {
  color: var(--primary-color);
}

.section-header {
  margin-bottom: 50px;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  /* margin-top: 60px; */
}

.carousel-item {
  height: 93vh;
}

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

/* .carousel-caption {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
} */

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0;
  z-index: 10;
  color: #fff;
  text-align: center;
  right: 0;
  left: 0;
}

.carousel-caption h1 {
  font-family: "Elsie", sans-serif;
  font-size: 60px;
  margin-bottom: 20px;
}

.carousel-caption p {
  font-size: 24px;
  margin-bottom: 30px;
}

.carousel-caption .btn {
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  display: inline-block;
}

@media (max-width: 767px) {
  .carousel-caption .btn {
    max-width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .carousel-caption .btn {
    max-width: 80%;
    font-size: 14px;
    padding: 8px 15px;
  }
}

/* Welcome Section */
.welcome-section {
  background-color: var(--white-color);
  padding: 100px 0;
}

.welcome-image {
  /* position: relative; */
  /* overflow: hidden; */
  /* border-radius: 10px; */
  /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); */
  display: flex;
  justify-content: center;
  aspect-ratio: 16 / 9;
}

.welcome-image img {
  /* box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4); */
  border-radius: 10px;
  /* transition: transform 0.5s ease; */
}

/* .welcome-image:hover img {
  transform: scale(1.05);
} */

.welcome-content {
  padding: 30px;
}

.welcome-content p {
  font-size: 18px;
}

.welcome-features {
  display: flex;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-right: 30px;
  margin-bottom: 15px;
}

.feature-icon {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 10px;
}

/* Rooms Section */
.rooms-section {
  background-color: #151515;
  padding: 100px 0;
}

.room-grid {
  margin-top: 50px;
}

.room-card {
  margin-bottom: 30px;
  background-color: #222222;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: #ffffff;
}

.room-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.room-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

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

.room-card:hover .room-image img {
  transform: scale(1.03);
}

.room-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.room-card:hover .room-overlay {
  opacity: 1;
}

.room-info {
  padding: 20px;
}

.room-info h3 {
  font-family: "Elsie", sans-serif;
  font-size: 38px;
  margin-bottom: 10px;
  /* color: #ffffff; */
}

.room-info p {
  /* color: #cccccc; */
  margin-bottom: 0;
}

.rooms-section .section-subtitle {
  color: #bbbbbb;
}

.rooms-section .section-title {
  color: #ffffff;
}

.rooms-section .section-description {
  color: #dddddd;
}

/* Stack cards vertically (one per row) on homepage rooms section */
.rooms-section .row > .col-md-4 {
  flex: 0 0 100%;
  max-width: 100%;
}

.rooms-section .row > .col-md-4:not(:first-child) {
  margin-top: 40px;
}

/* Alternate layout: second card image on the right (like the reference) */
.rooms-section .row > .col-md-4:nth-child(2) .room-card.split {
  flex-direction: row-reverse;
}

.rooms-section
  .row
  > .col-md-4:nth-child(2)
  .room-card.split
  .room-image::before {
  left: auto;
  right: -18px;
}

/* Ensure mobile keeps image on top consistently */
@media (max-width: 991px) {
  .rooms-section .row > .col-md-4:nth-child(2) .room-card.split {
    flex-direction: column;
  }

  .rooms-section
    .row
    > .col-md-4:nth-child(2)
    .room-card.split
    .room-image::before {
    right: auto;
    left: -12px;
  }
}

/* Split card variant (image + text side-by-side, white card, offset gray block) */
.rooms-section .room-card.split {
  display: flex;
  align-items: stretch;
  background: #222222; /* dark card on homepage */
  color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  padding: 24px;
  gap: 16px; /* space between image and text */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.rooms-section .room-card.split:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.rooms-section .room-card.split .room-image {
  flex: 0 0 40%;
  min-height: 280px;
  height: 320px; /* override base .room-image height */
  position: relative;
  overflow: visible; /* allow the offset block to show */
}

.rooms-section .room-card.split .room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Offset gray rectangle behind the image */
.rooms-section .room-card.split .room-image::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  background: #555555; /* brand gray offset on dark card */
  border-radius: 6px;
  z-index: 0;
}

.rooms-section .room-card.split .room-info {
  flex: 1 1 auto;
  background: transparent;
  padding: 28px 28px 30px;
}

.rooms-section .room-card.split .room-info h3 {
  color: #ffffff;
  font-size: 32px;
  margin-bottom: 10px;
}

.rooms-section .room-card.split .room-info p {
  color: #dddddd;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Hide image overlay/button on split style (we can add a text CTA instead if needed) */
.rooms-section .room-card.split .room-overlay {
  display: none;
}

/* Responsive behavior for split card */
@media (max-width: 991px) {
  .rooms-section .room-card.split {
    flex-direction: column;
  }
  .rooms-section .room-card.split .room-image {
    flex: 0 0 auto;
    min-height: 240px;
    margin: 20px;
  }
  .rooms-section .room-card.split .room-image::before {
    top: -12px;
    left: -12px;
  }
  .rooms-section .room-card.split .room-info {
    padding: 25px 25px 30px;
  }
}

/* Rooms Section - Light variant (for Rooms page) */
.rooms-section-light {
  background-color: #ffffff;
  padding: 100px 0;
}

.rooms-section-light .section-subtitle {
  color: #555555;
}

.rooms-section-light .section-title {
  color: #151515;
}

.rooms-section-light .section-description {
  color: #333333;
}

/* Stack cards vertically (one per row) on rooms page */
.rooms-section-light .row > .col-md-4 {
  flex: 0 0 100%;
  max-width: 100%;
}

.rooms-section-light .row > .col-md-4:not(:first-child) {
  margin-top: 40px;
}

/* Alternate layout: second card image on the right */
/* .rooms-section-light .row > .col-md-4:nth-child(2) .room-card-light.split {
  flex-direction: row-reverse;
} */

.rooms-section-row-reverse {
  flex-direction: row-reverse;
}

@media (max-width: 991px) {
  .rooms-section-row-reverse {
    flex-direction: column;
  }
}

.rooms-section-light
  .row
  > .col-md-4:nth-child(2)
  .room-card-light.split
  .room-image::before {
  left: auto;
  right: -18px;
}

/* Split card variant (image + text side-by-side, light card) */
.room-card-light {
  margin-bottom: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  color: #151515;
}

.room-card-light:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.rooms-section-light .room-card-light.split {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  color: #151515;
  border-radius: 10px;
  overflow: hidden;
  padding: 24px;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rooms-section-light .room-card-light.split .room-image {
  flex: 0 0 40%;
  min-height: 280px;
  height: 320px; /* override base .room-image height */
  position: relative;
  overflow: visible; /* allow the offset block to show */
}

.rooms-section-light .room-card-light.split .room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Offset rectangle behind the image */
.rooms-section-light .room-card-light.split .room-image::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  background: #555555; /* brand gray offset on light card */
  border-radius: 6px;
  z-index: 0;
}

.rooms-section-light .room-card-light.split .room-info {
  flex: 1 1 auto;
  background: transparent;
  padding: 28px 28px 30px;
}

.rooms-section-light .room-card-light.split .room-info h3 {
  color: #151515;
  font-size: 32px;
  margin-bottom: 10px;
}

.rooms-section-light .room-card-light.split .room-info p {
  color: #555555;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Make entire room card anchors behave as blocks and remove default link styling */
.rooms-section-light .room-grid a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.rooms-section-light .room-grid a .room-card-light.split {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rooms-section-light .room-grid a:hover .room-card-light.split {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Hide image overlay/button on split style */
.rooms-section-light .room-card-light.split .room-overlay {
  display: none;
}

/* Responsive behavior for split card */
@media (max-width: 991px) {
  .rooms-section-light .room-card-light.split {
    flex-direction: column;
  }
  .rooms-section-light .room-card-light.split .room-image {
    flex: 0 0 auto;
    min-height: 240px;
    margin: 20px;
  }
  .rooms-section-light .room-card-light.split .room-image::before {
    top: -12px;
    left: -12px;
  }
  .rooms-section-light .room-card-light.split .room-info {
    padding: 25px 25px 30px;
  }
  .rooms-section-light
    .row
    > .col-md-4:nth-child(2)
    .room-card-light.split
    .room-image::before {
    right: auto;
    left: -12px;
  }
}

/* Gallery Section */
.gallery-section {
  background-color: var(--white-color);
  padding-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  height: 300px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: var(--white-color);
  font-size: 40px;
}

/* Media queries para a galeria */
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
  }

  .gallery-item {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
  }

  .gallery-item {
    height: 200px;
  }
}

@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-item {
    height: 180px;
  }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/banner3.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white-color);
  padding: 100px 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: "Elsie", sans-serif;
  font-size: 48px;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 20px;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  /* background-color: #151515; */
  /* color: #ffffff; */
}

.contact-title {
  font-family: "Elsie", cursive;
  font-size: 38px;
  margin-bottom: 60px;
}

.contact-info {
  display: flex;
  justify-content: space-between;
}

.contact-item {
  text-align: center;
  padding: 0 15px;
  position: relative;
}

.contact-item:not(:last-child):after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: #333333;
}

.contact-icon {
  margin-bottom: 20px;
}

.contact-icon i {
  font-size: 36px;
  color: #555555;
}

.contact-item h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  /* color: #ffffff; */
}

.contact-item p {
  font-size: 16px;
}

.btn-contact {
  background-color: #555555;
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-contact:hover {
  background-color: #ffffff;
  color: #151515;
  transform: translateY(-2px);
}

/* Estilos adicionais para a página de contato */
.map-section {
  padding: 0 0 80px;
  background-color: var(--white-color);
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  display: block;
}

.contact-form-section {
  background-color: var(--light-color);
}

.form-group .form-control {
  border-radius: 8px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.form-group .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(85, 85, 85, 0.25);
}

.form-group textarea.form-control {
  min-height: 150px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-secondary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.section-divider {
  height: 3px;
  width: 80px;
  background-color: var(--primary-color);
  margin: 0 auto 30px;
}

@media (max-width: 767px) {
  .contact-section {
    padding: 60px 0;
  }

  .map-section {
    padding: 0 0 60px;
  }
}

/* Responsive Styles */
@media (max-width: 991px) {
  .section-title {
    font-size: 32px;
  }

  .welcome-content {
    padding: 30px 0;
  }

  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .contact-item:not(:last-child):after {
    display: none;
  }

  .contact-item {
    margin-bottom: 40px;
  }
}

@media (max-width: 991px) {
  #navbarSupportedContent .navbar-nav .nav-item:last-child {
    margin-top: 16px;
  }
  #navbarSupportedContent .navbar-nav .btn {
    width: 100%;
  }
}

@media (max-width: 767px) {
  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 30px;
  }

  .carousel-caption h1 {
    font-size: 40px;
  }

  .carousel-caption p {
    font-size: 16px;
  }

  .hero-section {
    height: 70vh;
  }

  .carousel-item {
    height: 70vh;
  }

  .room-image {
    height: 250px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .gallery-item {
    height: 200px;
  }

  .cta-content h2 {
    font-size: 36px;
  }

  .cta-content p {
    font-size: 18px;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .section-title {
    font-size: 28px;
  }

  .carousel-caption h1 {
    font-size: 32px;
  }

  .carousel-caption p {
    font-size: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 250px;
  }
}

/* Estilos para a página Sobre */

.section-title {
  font-family: "Elsie", cursive;
  font-size: 42px;
  color: #333;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
}

.section-divider {
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto 30px;
}

.highlight {
  color: var(--primary-color);
}

.about-content {
  padding: 20px 0;
}

.about-subtitle {
  font-family: "Raleway", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.about-subtitle:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
}

.about-content.text-center .about-subtitle:after {
  left: 50%;
  transform: translateX(-50%);
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.about-image {
  margin-bottom: 30px;
  overflow: hidden;
}

.about-image img {
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
  .about-section {
    padding: 100px 0 60px;
  }

  .section-title {
    font-size: 36px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .about-section {
    padding: 80px 0 40px;
  }

  .section-title {
    font-size: 38px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .about-subtitle {
    font-size: 24px;
  }
}

.instagram-logo,
.whatsapp-logo {
  transition: all 0.3s ease;
}

.instagram-logo svg,
.whatsapp-logo svg {
  transition: all 0.3s ease;
}

.instagram-logo:hover svg {
  fill: #ff0069;
}

.whatsapp-logo:hover svg {
  fill: #25d366;
}

.floating-menu {
  padding: 1.5rem 5rem;
  position: fixed !important;
  width: 100%;
  z-index: 9999;
  top: 0;
}

@media (max-width: 767px) {
  .floating-menu {
    padding: 1.5rem 2rem;
  }
}
