/* ===== VARIABLES ===== */
:root {
  --main: #d42628;
  --main-dark: #b01e20;
  --main-light: #f24446;
  --black: #242430;
  --gray: #eaefe8;
  --gray-dark: #6b7280;
  --white: #ffffff;
  --whatsapp: #25d366;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Domine', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Pridi', serif;
  font-weight: 600;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(36, 36, 48, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  transition: transform var(--transition);
}

.nav__logo img:hover {
  transform: scale(1.05);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-family: 'Pridi', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav__link--cta {
  background: var(--main);
  color: var(--white);
}

.nav__link--cta:hover {
  background: var(--main-dark);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/home1.jpg') center/cover no-repeat;
  text-align: center;
  color: var(--white);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(36, 36, 48, 0.85) 0%, rgba(212, 38, 40, 0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__icon {
  width: 100px;
  margin: 0 auto 24px;
  filter: brightness(0) invert(1);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Pridi', serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn--primary:hover {
  background: var(--main-dark);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #1fb855;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--main);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section__title--light {
  color: var(--white);
}

.section__title--light::after {
  background: var(--white);
}

.section__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--gray-dark);
  font-size: 1.05rem;
}

/* ===== EMPRESA ===== */
.empresa {
  background: var(--white);
}

.empresa__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card__img {
  overflow: hidden;
  height: 220px;
}

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

.card:hover .card__img img {
  transform: scale(1.05);
}

.card__body {
  padding: 28px;
}

.card__title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--main);
}

.card__body p {
  color: var(--gray-dark);
  font-size: 0.95rem;
}

/* ===== SERVIÇOS ===== */
.servicos {
  background: var(--black);
  color: var(--white);
}

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 56px;
}

.servico {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition), transform var(--transition);
}

.servico:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.servico img {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  filter: brightness(0) invert(1);
}

.servico h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--main-light);
}

.servico p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ===== POUSADA ===== */
.pousada {
  background: var(--gray);
}

.pousada__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pousada__text .section__title {
  text-align: left;
}

.pousada__text .section__title::after {
  margin: 16px 0 0;
}

.pousada__text p {
  color: var(--gray-dark);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.pousada__amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.pousada__amenities li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
}

.pousada__amenities li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--main);
  border-radius: 50%;
}

.pousada__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pousada__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* ===== TARIFAS ===== */
.tarifas {
  background: var(--white);
}

.tarifas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.tarifa {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--gray);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.tarifa:hover {
  border-color: var(--main);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tarifa__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  opacity: 0.6;
}

.tarifa h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--black);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tarifa__preco {
  display: inline-block;
  font-family: 'Pridi', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--main);
}

/* ===== CONVÊNIOS ===== */
.convenios {
  background: var(--gray);
}

.convenios__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.convenios__grid img {
  width: 100px;
  height: 60px;
  object-fit: contain;
  padding: 8px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.convenios__grid img:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow);
}

/* ===== DETALHE INLINE ===== */
.card[data-detalhe] {
  cursor: pointer;
}

.card--active {
  border: 2px solid var(--main);
  box-shadow: 0 0 0 4px rgba(212, 38, 40, 0.15);
  transform: translateY(-6px);
}

.detalhe-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              overflow 0s 0.6s;
}

.detalhe-wrapper.active {
  overflow: visible;
}

.detalhe-inner {
  position: relative;
  margin-top: 48px;
  padding: 48px 40px;
  background: var(--gray);
  border-radius: var(--radius);
  border-left: 4px solid var(--main);
}

.detalhe__fechar {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray-dark);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition), transform var(--transition);
}

.detalhe__fechar:hover {
  color: var(--main);
  transform: scale(1.2);
}

.detalhe__painel {
  display: none;
}

.detalhe__painel.active {
  display: block;
  animation: detalhe-fadein 0.5s ease 0.15s both;
}

@keyframes detalhe-fadein {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detalhe__titulo {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--main);
  margin-bottom: 28px;
}

.detalhe__titulo::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--main);
  margin-top: 12px;
  border-radius: 2px;
}

.detalhe__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.detalhe__textos p {
  color: var(--gray-dark);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.detalhe__galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.detalhe__foto-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d9dfd7 0%, #c5cbc3 100%);
  border-radius: 8px;
}

/* ===== GALERIA ===== */
.galeria {
  background: var(--white);
}

.galeria__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.galeria__item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.galeria__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.galeria__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--gray) 0%, #d9dfd7 100%);
}

/* ===== CONTATO ===== */
.contato {
  background: var(--black);
  color: var(--white);
}

.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 56px;
}

.contato__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contato__form input,
.contato__form textarea {
  width: 100%;
  padding: 14px 20px;
  font-family: 'Domine', serif;
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.contato__form input::placeholder,
.contato__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contato__form input:focus,
.contato__form textarea:focus {
  border-color: var(--main);
  background: rgba(255, 255, 255, 0.12);
}

.contato__form textarea {
  resize: vertical;
}

.contato__form .btn {
  align-self: flex-start;
}

.contato__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contato__item h3,
.contato__social h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--main-light);
  margin-bottom: 8px;
}

.contato__item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.contato__item a {
  transition: color var(--transition);
}

.contato__item a:hover {
  color: var(--main-light);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}

.social-links a:hover {
  background: var(--main);
  transform: scale(1.1);
}

/* ===== FOOTER ===== */
.footer {
  background: #1a1a24;
  padding: 24px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer__inner p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== FAB WHATSAPP ===== */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 92px;
  width: 44px;
  height: 44px;
  background: var(--main);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--main-dark);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(36, 36, 48, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform var(--transition);
  }

  .nav__menu.active {
    transform: translateY(0);
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .section {
    padding: 64px 0;
  }

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

  .servicos__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pousada__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pousada__text .section__title {
    text-align: center;
  }

  .pousada__text .section__title::after {
    margin: 16px auto 0;
  }

  .pousada__image img {
    min-height: 250px;
  }

  .tarifas__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .detalhe-inner {
    padding: 32px 20px;
    margin-top: 32px;
  }

  .detalhe__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .contato__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contato__form .btn {
    align-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .tarifas__grid {
    grid-template-columns: 1fr;
  }

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

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
