/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* STRICT PALETTE FROM IMAGE */
  --color-primary-base: #B46A3C;
  /* Rust / Terracotta */
  --color-primary-dark: #3A2F2A;
  /* Dark Brown */

  --color-secondary-base: #2F5D73;
  /* Muted Teal/Blue */
  --color-secondary-dark: #2F5D73;
  /* Same for consistency or slightly adjusted if needed */

  --color-accent-base: #B46A3C;
  /* Reusing Rust for accents */
  --color-accent-dark: #3A2F2A;

  --color-bg-base: #F4EFE8;
  /* Light Cream Background */
  --color-bg-alt: #E8DFD2;
  /* Slightly darker cream for alternate sections */
  --color-surface: #FFFFFF;

  /* Additional neutral derived from the palette */
  --color-sand: #CDB79E;
  /* This is an approximation of the 6th block in the image */

  --color-text-main: #3A2F2A;
  /* Using dark brown for main text */
  --color-text-muted: #5e4c44;
  /* Slightly lighter brown */

  --color-whatsapp: #25D366;
  --color-border: #E8DFD2;

  /* Vibrant Gradients (Subdued based on new palette) */
  --grad-primary: linear-gradient(135deg, var(--color-primary-base), #9a5327);
  --grad-secondary: linear-gradient(135deg, var(--color-secondary-base), #1e4254);
  --grad-sunset: linear-gradient(135deg, var(--color-primary-base), var(--color-secondary-base));

  /* Luxury Typography */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;

  /* Transitions */
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-width: 1200px;
  --header-height: 85px;

  /* Shadows */
  --shadow-sm: 0 4px 10px rgba(58, 47, 42, 0.05);
  --shadow-md: 0 10px 20px rgba(58, 47, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(180, 106, 60, 0.15);
  /* Tinted lively shadow (Rust) */
  --shadow-glow: 0 0 25px rgba(47, 93, 115, 0.3);
  /* Glowing state (Teal) */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary-base);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

.section {
  padding: 6rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__header {
  margin-bottom: 4rem;
}

.section__header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__kicker {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary-base);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--color-primary-dark);
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-primary-base);
  border-radius: 2px;
}

.section__header--center .section__title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-top: 1rem;
  font-weight: 400;
}

/* In this new palette, let's keep text gradient subtle or remove it for elegance */
.text-gradient {
  color: var(--color-primary-base);
}

/* Global Animations / FX */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.pulse-effect {
  animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.glow-hover {
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.glow-hover:hover {
  transform: translateY(-8px);
  border-color: var(--color-secondary-base);
  box-shadow: var(--shadow-glow);
}

.glow-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  z-index: -1;
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 200%;
}

.btn--primary {
  background: var(--grad-primary);
  color: var(--color-surface);
  border: none;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  background: var(--grad-secondary);
  color: var(--color-surface);
}

.btn--secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary-base);
  border: 2px solid var(--color-primary-base);
}

.btn--outline:hover {
  background: var(--grad-primary);
  color: var(--color-surface);
  border-color: transparent;
  transform: translateY(-3px);
}

/* Topbar & Header */
.topbar {
  background: var(--color-primary-dark);
  color: var(--color-surface);
  padding: 0.6rem 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar__phone:hover {
  color: var(--color-secondary-base);
}

.topbar__phone .icon,
.topbar__right .icon {
  filter: brightness(0) invert(1);
  width: 16px;
}

.topbar__right {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--color-secondary-base);
  transform: scale(1.1);
}

.header {
  position: sticky;
  top: 0;
  background-color: rgba(244, 239, 232, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 223, 210, 0.6);
  z-index: 100;
  height: var(--header-height);
  transition: all var(--transition-normal);
}

.header.scrolled {
  height: 75px;
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform var(--transition-fast);
}

.brand:hover {
  transform: scale(1.02);
}

.brand__logo {
  height: 60px;
  width: 60px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-secondary-base);
  padding: 2px;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: var(--font-serif);
  color: var(--color-primary-dark);
  font-size: 1.4rem;
  line-height: 1;
}

.brand__city {
  font-size: 0.70rem;
  color: var(--color-primary-base);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}

.nav--desktop {
  display: none;
  gap: 2.2rem;
}

.nav__link {
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary-base);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__link:hover {
  color: var(--color-primary-base);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger__line {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary-base);
  transition: 0.3s;
}

@media (max-width: 991px) {
  .header__actions .btn {
    display: none;
  }
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }

  .nav--desktop {
    display: flex;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: calc(var(--header-height) + 38px);
  left: 0;
  width: 100%;
  background-color: var(--color-bg-base);
  border-bottom: 2px solid var(--color-primary-base);
  box-shadow: var(--shadow-lg);
  padding: 2rem 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 99;
}

.mobile-menu.is-active {
  transform: translateY(0);
  opacity: 1;
}

.nav--mobile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav--mobile .nav__link {
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__divider {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: 0.5rem 0;
}

/* Hero (Luxury Redevelopment) */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-surface);
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(58, 47, 42, 0.7), rgba(47, 93, 115, 0.3)), url('https://i.ibb.co/dsxvm4wx/Imagem-da-fachada-de-frente.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
  animation: slowZoomHero 25s alternate infinite ease-in-out;
}

@keyframes slowZoomHero {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, var(--color-bg-base) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero__kicker {
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--color-sand);
}

.hero__title {
  font-size: clamp(3.5rem, 13vw, 8.5rem);
  margin-bottom: 0.8rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-serif);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin-bottom: 3.5rem;
  font-weight: 500;
  font-style: normal;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mouse-icon {
  width: 26px;
  height: 40px;
  border: 2px solid white;
  border-radius: 20px;
  position: relative;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.mouse-icon:hover {
  opacity: 1;
}

.mouse-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: scrollMouse 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

@keyframes scrollMouse {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

@media (max-width: 768px) {
  .hero__bg {
    background-attachment: scroll;
  }
}

/* Intro Section */
.section--intro {
  padding: 6rem 0;
  background-color: var(--color-bg-base);
  text-align: center;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.about__media::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.about__media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.chip {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  animation: floatChip 5s ease-in-out infinite;
}

.chip:nth-child(2) {
  animation-delay: 1.5s;
}

.chip:nth-child(3) {
  animation-delay: 3s;
}

@keyframes floatChip {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

.about__list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.about__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-primary-base);
  font-weight: bold;
  font-size: 1.2rem;
}

.about__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__media::before {
    padding-top: 60%;
  }
}

/* Room Cards */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card-room {
  background: var(--color-surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--color-border);
}

.card-room:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-base);
}

.card-room__thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.card-room__thumb::before {
  content: '';
  display: block;
  padding-top: 65%;
}

.card-room__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card-room:hover .card-room__thumb img {
  transform: scale(1.08);
}

.card-room__hint {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-dark);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.card-room:hover .card-room__hint {
  opacity: 1;
  transform: translateY(0);
}

.card-room__body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--color-surface);
  z-index: 2;
  position: relative;
}

.card-room__pill {
  position: absolute;
  top: -15px;
  left: 1.5rem;
  background: var(--color-primary-base);
  color: white;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.card-room__pill--alt {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
}

.card-room__title {
  font-size: 1.8rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.8rem;
  margin-top: 0.5rem;
}

.card-room__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 1.2rem;
}

.amenity {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--color-bg-alt);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--color-primary-base);
}

.amenity .icon {
  width: 14px;
  opacity: 0.8;
}

.card-room__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

/* TABS for Experiences */
.tabs-container {
  margin-top: 2rem;
}

.tabs-header {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 2px solid var(--color-border);
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  border-color: var(--color-primary-base);
  color: var(--color-primary-base);
}

.tab-btn.active {
  background: var(--grad-primary);
  color: var(--color-surface);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.tab-pane {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Events Cards */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.card-event {
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  border: 1px solid var(--color-border);
}

.card-event__media {
  position: relative;
  overflow: hidden;
}

.card-event__media::before {
  content: '';
  display: block;
  padding-top: 65%;
}

.card-event__media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card-event:hover .card-event__media img {
  transform: scale(1.1);
  filter: contrast(1.1);
}

.card-event__body {
  padding: 1.8rem 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-event__title {
  font-size: 1.6rem;
  color: var(--color-primary-base);
  margin-bottom: 0.8rem;
}

.card-event__text {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

/* Timeline & Rules */
.info-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.timeline {
  padding-left: 20px;
  border-left: 3px dashed var(--color-border);
}

.timeline__item {
  position: relative;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__icon {
  width: 46px;
  height: 46px;
  background: var(--color-surface);
  border-radius: 50%;
  position: absolute;
  left: -45px;
  top: -5px;
  border: 3px solid var(--color-primary-base);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline__item:hover .timeline__icon {
  transform: scale(1.15) rotate(10deg);
}

.timeline__title {
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.3rem;
}

.timeline__text {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.timeline__action {
  margin-top: 3rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
  text-align: center;
}

.rule-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rule-icon {
  width: 44px;
  height: 44px;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.rule__title {
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 700;
}

.rule__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .info-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

@media (max-width: 500px) {
  .rules-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Gallery */
.gallery-strip {
  padding: 3rem 0;
  background: var(--color-bg-base);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 2px solid transparent;
}

.gallery-item::before {
  content: '';
  display: block;
  padding-top: 75%;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item::after {
  content: '+';
  position: absolute;
  inset: 0;
  background: rgba(58, 47, 42, 0.4);
  color: white;
  font-size: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  backdrop-filter: blur(2px);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-primary-base);
  z-index: 5;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover::after {
  opacity: 1;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border-radius: 12px;
  margin-bottom: 1.2rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  text-align: left;
}

.faq-item__icon {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: transform var(--transition-normal);
}

.faq-item__btn[aria-expanded="true"] .faq-item__icon {
  transform: rotate(90deg);
  color: var(--color-primary-base);
}

.faq-item__panel {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Reviews */
.reviews-widget-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.reviews-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem 2rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  width: 100%;
}

.reviews-carousel::-webkit-scrollbar {
  height: 8px;
}

.reviews-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.reviews-carousel::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.review-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.review-card__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-primary-base);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.review-card__name-group {
  display: flex;
  flex-direction: column;
}

.review-card__name {
  font-size: 1rem;
  color: #202124;
  font-family: var(--font-base);
  font-weight: 700;
  margin: 0 0 2px 0;
  text-align: left;
}

.review-card__text {
  font-style: normal;
  color: #3c4043;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.review-card__avatar-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.review-card__time {
  color: #70757a;
  font-size: 0.85rem;
}

.review-card__stars {
  display: flex;
  gap: 2px;
}

.review-card__stars svg {
  width: 14px;
  height: 14px;
}

.review-card__see-more {
  color: #1a73e8;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.review-card__footer {
  display: flex;
  align-items: center;
  color: #70757a;
  font-size: 0.85rem;
  margin-top: auto;
}

.reviews-section-title {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #202124;
}

/* Modals */
/* FIX: margin: auto helps the dialog center itself properly after the reset removes its default margins! */
.modal-dialog {
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  border-radius: 20px;
  padding: 0;
  border: none;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: auto;
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-dialog__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-dialog__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 1.2rem;
  z-index: 10;
  font-weight: bold;
  color: var(--color-primary-dark);
}

.modal-dialog__close:hover {
  background: var(--color-primary-base);
  color: white;
}

.modal-dialog__media img {
  width: 100%;
  max-height: 35vh;
  object-fit: cover;
}

.modal-dialog__content {
  padding: 2rem;
  background: var(--color-surface);
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.modal-dialog__title {
  font-size: 2rem;
  color: var(--color-primary-base);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.modal-dialog__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  overflow-y: auto;
  text-align: left;
  padding-right: 8px;
}

.modal-dialog__desc::-webkit-scrollbar {
  width: 6px;
}
.modal-dialog__desc::-webkit-scrollbar-track {
  background: var(--color-bg-base);
  border-radius: 4px;
}
.modal-dialog__desc::-webkit-scrollbar-thumb {
  background: var(--color-primary-base);
  border-radius: 4px;
}

@media (max-width: 600px) {
  .modal-dialog__inner {
    display: block;
    overflow-y: auto;
  }

  .modal-dialog__media img {
    height: auto;
    max-height: 50vh;
  }
  
  .modal-history-theme .modal-dialog__media img {
    max-height: 60vh;
    object-position: center bottom;
  }

  .modal-dialog__content {
    padding: 1.5rem;
    display: block;
  }

  .modal-dialog__desc {
    overflow-y: visible;
    padding-right: 0;
  }
}

/* Modal History Specific Desktop Layout */
@media (min-width: 801px) {
  .modal-history-theme {
    max-width: 1000px;
    height: 85vh;
  }
  .modal-history-theme .modal-dialog__inner {
    flex-direction: row;
    height: 100%;
  }
  .modal-history-theme .modal-dialog__media {
    width: 45%;
    flex-shrink: 0;
    background: #f4efe8;
  }
  .modal-history-theme .modal-dialog__media img {
    height: 100%;
    max-height: none;
    object-position: center 20%;
    border-radius: 0; 
  }
  .modal-history-theme .modal-dialog__content {
    width: 55%;
    padding: 3.5rem 4rem 3.5rem 3rem;
    align-items: flex-start;
  }
  .modal-history-theme .modal-dialog__title {
    text-align: left;
  }
  .modal-history-theme .modal-dialog__close {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
  }
}

/* History Web Banner (Parallax) */
.history-banner {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}
.history-banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom right, rgba(58, 47, 42, 0.85), rgba(47, 93, 115, 0.75)), url('https://i.ibb.co/dsxvm4wx/Imagem-da-fachada-de-frente.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
  transition: transform 10s ease;
}
.history-banner:hover .history-banner__bg {
  transform: scale(1.05);
}
.history-banner__content {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transition: all var(--transition-normal);
}
.history-banner__content:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}
.history-banner .section__title::after {
  background: var(--color-sand);
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .history-banner { padding: 5rem 0; }
  .history-banner__bg { background-attachment: scroll; }
  .history-banner__content { padding: 2.5rem 1.5rem; }
}
.pulse-bronze { animation: pulseBronze 2s infinite; }
@keyframes pulseBronze {
  0% { box-shadow: 0 0 0 0 rgba(180, 106, 60, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(180, 106, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(180, 106, 60, 0); }
}

/* Lightbox */
.modal-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.modal-lightbox[open] {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-lightbox::backdrop {
  background: transparent;
}

.modal-lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.modal-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  font-weight: 300;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.modal-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.modal-lightbox__nav:hover {
  opacity: 1;
}

.modal-lightbox__nav--prev {
  left: 10px;
}

.modal-lightbox__nav--next {
  right: 10px;
}

/* Fab WhatsApp */
.fab-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--color-whatsapp);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-md);
  z-index: 100;
  transition: transform var(--transition-fast);
}

.fab-whatsapp:hover {
  transform: scale(1.1) rotate(-5deg);
}

@media (max-width: 768px) {
  .fab-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}

/* Content wrapper specific for map */
.map-fullwidth {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 450px;
}

.map-fullwidth iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background: var(--color-primary-dark);
  color: var(--color-surface);
  padding-top: 5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--grad-sunset);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer__title {
  color: var(--color-bg-alt);
  margin-bottom: 1.5rem;
}

.footer__contact-item a {
  color: var(--color-bg-alt);
  font-weight: bold;
}

.footer__contact-item a:hover {
  color: white;
}

.footer__links li {
  margin-bottom: 0.8rem;
}

.footer__links a:hover {
  color: var(--color-bg-alt);
  padding-left: 5px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  margin-bottom: 0.8rem;
  width: 100%;
  max-width: 250px;
}

.btn-pill:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__backtop:hover {
  color: white;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}