/* ==========================================================================
   RANCHO ESPELHO D'ÁGUA — V1 ARCHITECTURE & LAKEFRONT DESIGN SYSTEM
   Paleta: Água, Pedra & Arquitetura (#F7F9FA, #EDF1F4, #0E222D, #2B4C5E, #B68D5C)
   Tipografia: Space Grotesk (Display) + Plus Jakarta Sans (Body/UI)
   ========================================================================== */

:root {
  --bg-ice: #F7F9FA;
  --bg-stone: #EDF1F4;
  --bg-white: #FFFFFF;
  --ink-deep: #0E222D;
  --ink-slate: #2B4C5E;
  --ink-muted: #516572;
  --accent-sand: #B68D5C;
  --accent-sand-soft: rgba(182, 141, 92, 0.22);

  --line-light: rgba(14, 34, 45, 0.12);
  --line-light-strong: rgba(14, 34, 45, 0.22);
  --line-dark: rgba(247, 249, 250, 0.14);
  --line-dark-strong: rgba(247, 249, 250, 0.28);

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --container-max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --header-height: 76px;

  --ease-water: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-curtain: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-ice);
  color: var(--ink-deep);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-deep);
  background-color: var(--bg-ice);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-intro-active,
body.is-locked {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

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

figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-sand);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4.25rem, 8.5vw, 7.5rem);
}

/* ==========================================================================
   TYPOGRAPHY & SHARED ELEMENTS
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-slate);
  margin-bottom: 1rem;
}

.eyebrow--light {
  color: rgba(247, 249, 250, 0.78);
}

.eyebrow__rule {
  width: 28px;
  height: 1px;
  background-color: var(--accent-sand);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink-deep);
  margin: 0;
}

.section-title--light {
  color: var(--bg-ice);
}

.editorial-caption {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.editorial-caption strong {
  color: var(--ink-deep);
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-deep);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--accent-sand);
  transition: gap 0.3s var(--ease-water), color 0.25s ease;
}

.text-link:hover {
  gap: 0.85rem;
  color: var(--ink-slate);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-water);
}

.btn:active {
  transform: translateY(1px);
}

.btn--full {
  width: 100%;
}

.btn--header-cta {
  min-height: 40px;
  padding: 0.6rem 1.15rem;
  font-size: 0.78rem;
  background-color: var(--bg-ice);
  color: var(--ink-deep);
}

.btn--header-cta:hover {
  background-color: var(--accent-sand);
  color: var(--bg-white);
}

.site-header.is-scrolled .btn--header-cta {
  background-color: var(--ink-deep);
  color: var(--bg-ice);
}

.site-header.is-scrolled .btn--header-cta:hover {
  background-color: var(--ink-slate);
}

.btn--light-solid {
  background-color: var(--bg-ice);
  color: var(--ink-deep);
}

.btn--light-solid:hover {
  background-color: var(--accent-sand);
  color: var(--bg-white);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--ink-deep);
  color: var(--ink-deep);
}

.btn--outline:hover {
  background-color: var(--ink-deep);
  color: var(--bg-ice);
}

.btn--whatsapp {
  background-color: var(--ink-deep);
  color: var(--bg-ice);
  min-height: 52px;
}

.btn--whatsapp:hover {
  background-color: var(--ink-slate);
}

.icon-wa {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* ==========================================================================
   1A. ABERTURA "LINHA D'ÁGUA" (SPLIT CURTAIN INTRO)
   ========================================================================== */

.waterline-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: all;
  overflow: hidden;
}

.waterline-intro.is-done {
  display: none;
}

.waterline-intro__panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.2%;
  background-color: var(--ink-deep);
  transform: translate3d(0, 0, 0);
  transition: transform 0.88s var(--ease-curtain);
  will-change: transform;
}

.waterline-intro__panel--top {
  top: 0;
}

.waterline-intro__panel--bottom {
  bottom: 0;
}

.waterline-intro__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.waterline-intro__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transform: translateY(-28px);
  opacity: 0;
  animation: introBrandIn 0.55s var(--ease-water) 0.08s forwards;
  transition: opacity 0.4s ease, transform 0.55s var(--ease-curtain);
}

.waterline-intro__mark {
  width: 58px;
  height: auto;
}

.waterline-intro__wordmark {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--bg-ice);
  text-indent: 0.34em;
}

.waterline-intro__sub {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: rgba(247, 249, 250, 0.58);
  text-indent: 0.32em;
}

.waterline-intro__seam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(86vw, 560px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(247, 249, 250, 0) 0%,
    rgba(182, 141, 92, 0.85) 22%,
    rgba(247, 249, 250, 0.92) 50%,
    rgba(182, 141, 92, 0.85) 78%,
    rgba(247, 249, 250, 0) 100%
  );
  transform: translate(-50%, -50%) scaleX(0);
  animation: introSeamDraw 0.72s var(--ease-water) 0.12s forwards;
  transition: opacity 0.35s ease;
}

/* Split state (~0.9s) */
.waterline-intro.is-splitting {
  pointer-events: none;
}

.waterline-intro.is-splitting .waterline-intro__panel--top {
  transform: translate3d(0, -102%, 0);
}

.waterline-intro.is-splitting .waterline-intro__panel--bottom {
  transform: translate3d(0, 102%, 0);
}

.waterline-intro.is-splitting .waterline-intro__brand {
  opacity: 0;
  transform: translateY(-44px);
}

.waterline-intro.is-splitting .waterline-intro__seam {
  opacity: 0;
}

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

@keyframes introSeamDraw {
  from {
    transform: translate(-50%, -50%) scaleX(0);
  }
  to {
    transform: translate(-50%, -50%) scaleX(1);
  }
}

/* ==========================================================================
   HEADER & MOBILE DRAWER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: transparent;
  border-bottom: 1px solid rgba(247, 249, 250, 0.14);
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background-color: rgba(247, 249, 250, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
}

.brand-link__logo {
  height: 36px;
  width: auto;
  transition: opacity 0.3s ease;
}

.brand-link__logo--dark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}

.site-header.is-scrolled .brand-link__logo--light {
  opacity: 0;
}

.site-header.is-scrolled .brand-link__logo--dark {
  opacity: 1;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.85rem;
}

.site-nav__link {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(247, 249, 250, 0.92);
  padding-block: 0.35rem;
  transition: color 0.25s ease;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-water);
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

.site-header.is-scrolled .site-nav__link {
  color: var(--ink-deep);
}

.site-header.is-scrolled .site-nav__link:hover {
  color: var(--ink-slate);
}

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle__line {
  display: block;
  height: 1.5px;
  background-color: var(--bg-ice);
  transition: width 0.25s ease, background-color 0.3s ease;
}

.menu-toggle__line:first-child {
  width: 26px;
}

.menu-toggle__line:last-child {
  width: 18px;
}

.site-header.is-scrolled .menu-toggle__line {
  background-color: var(--ink-deep);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  visibility: hidden;
}

.mobile-drawer.is-open {
  pointer-events: all;
  visibility: visible;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(14, 34, 45, 0.56);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-drawer.is-open .mobile-drawer__backdrop {
  opacity: 1;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 360px);
  background-color: var(--ink-deep);
  color: var(--bg-ice);
  padding: 1.35rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease-water);
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--bg-ice);
  cursor: pointer;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  margin-block: 1.75rem auto;
}

.mobile-drawer__link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line-dark);
  color: var(--bg-ice);
}

.mobile-drawer__footer {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mobile-drawer__meta {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(247, 249, 250, 0.64);
}

.mobile-drawer .btn--whatsapp {
  background-color: var(--bg-ice);
  color: var(--ink-deep);
}

/* ==========================================================================
   1B. HERO SECTION (100vh)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--ink-deep);
  color: var(--bg-ice);
}

.hero__media {
  position: absolute;
  inset: -4% 0;
  z-index: 0;
  will-change: transform;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: contrast(1.04) saturate(1.04);
  transform: scale(1.09);
  transition: transform 1.5s var(--ease-water);
}

body.is-revealed .hero__image {
  transform: scale(1);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(14, 34, 45, 0.56) 0%,
      rgba(14, 34, 45, 0.18) 38%,
      rgba(14, 34, 45, 0.34) 64%,
      rgba(14, 34, 45, 0.84) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: max(clamp(2.5rem, 6vh, 4.5rem), calc(env(safe-area-inset-bottom) + 1.5rem));
  width: 100%;
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-water) 0.25s, transform 0.8s var(--ease-water) 0.25s;
}

.hero__coords {
  display: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(247, 249, 250, 0.64);
}

.hero__headline-row {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-top: 1px solid rgba(247, 249, 250, 0.22);
  padding-top: 1.4rem;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 11vw, 6.4rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--bg-ice);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-water) 0.35s, transform 0.9s var(--ease-water) 0.35s;
}

.hero__subtitle {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(247, 249, 250, 0.88);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease-water) 0.48s, transform 0.85s var(--ease-water) 0.48s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease-water) 0.58s, transform 0.85s var(--ease-water) 0.58s;
}

.hero__scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 249, 250, 0.88);
  padding-block: 0.5rem;
  transition: color 0.25s ease;
}

.hero__scroll-link:hover {
  color: var(--accent-sand);
}

body.is-revealed .hero__meta,
body.is-revealed .hero__title,
body.is-revealed .hero__subtitle,
body.is-revealed .hero__actions {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   2. O CONCEITO (ASSIMÉTRICA + SCROLL REVEAL)
   ========================================================================== */

.concept {
  background-color: var(--bg-ice);
}

.concept__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.concept__copy {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--ink-muted);
  max-width: 39rem;
}

.concept__copy p {
  margin: 0;
}

.concept__stats {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding-block: 1.25rem;
  gap: 1rem;
}

.concept__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.concept__stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink-deep);
}

.concept__stat-label {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

.concept__photo-wide {
  margin-top: 2.25rem;
}

.photo-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background-color: var(--bg-stone);
  overflow: hidden;
  cursor: zoom-in;
}

.concept__photo-wide .photo-trigger {
  aspect-ratio: 16 / 10;
}

.concept__photo-tall .photo-trigger {
  aspect-ratio: 3 / 4;
}

.photo-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(1.03);
  transition: transform 0.8s var(--ease-water);
}

.photo-trigger:hover img {
  transform: scale(1.04);
}

.photo-trigger__badge {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.35rem 0.7rem;
  background-color: rgba(14, 34, 45, 0.76);
  color: var(--bg-ice);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  opacity: 0.9;
  transition: background-color 0.25s ease;
}

.photo-trigger:hover .photo-trigger__badge {
  background-color: var(--accent-sand);
}

.concept__aside {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.concept__note {
  padding: 1.75rem;
  background-color: var(--bg-stone);
  border-left: 2px solid var(--accent-sand);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.concept__note-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-slate);
}

.concept__note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   3. ESTRUTURA POR AMBIENTES (ABAS MINIMALISTAS + GALERIA)
   ========================================================================== */

.environments {
  background-color: var(--bg-stone);
  border-top: 1px solid var(--line-light);
}

.environments__header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.environments__intro {
  margin: 0;
  max-width: 32rem;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

/* Abas com linha fina inferior */
.tabs-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border-bottom: 1px solid var(--line-light-strong);
  margin-bottom: 2rem;
}

.tabs-bar__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  padding: 0 0 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--ink-muted);
  transition: color 0.25s ease;
}

.tabs-bar__tab:hover,
.tabs-bar__tab.is-active {
  color: var(--ink-deep);
}

.tabs-bar__num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-sand);
}

.tabs-bar__label {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 2.3vw, 1.18rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tabs-bar__count {
  display: none;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.tabs-bar__indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background-color: var(--ink-deep);
  transition: transform 0.42s var(--ease-water), width 0.42s var(--ease-water);
}

/* Tab panel fade */
.tab-panel {
  animation: panelFade 0.48s var(--ease-water);
}

.tab-panel[hidden] {
  display: none;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Architectural Photo Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-deep);
}

.gallery-card__trigger {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-card__trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(1.03);
  transition: transform 0.75s var(--ease-water);
}

.gallery-card__trigger:hover img {
  transform: scale(1.05);
}

.gallery-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(
    180deg,
    rgba(14, 34, 45, 0) 44%,
    rgba(14, 34, 45, 0.78) 100%
  );
  color: var(--bg-ice);
}

.gallery-card__tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 249, 250, 0.76);
  margin-bottom: 0.25rem;
}

.gallery-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--bg-ice);
}

/* ==========================================================================
   4. DIFERENCIAIS EM GRADE ARQUITETÔNICA (#0E222D)
   ========================================================================== */

.specs {
  background-color: var(--ink-deep);
  color: var(--bg-ice);
}

.specs__top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.specs__lead {
  margin: 0;
  max-width: 34rem;
  color: rgba(247, 249, 250, 0.72);
}

.specs__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 3rem;
}

.specs__metric {
  padding: 1.5rem 1rem 1.5rem 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.specs__metric:nth-child(even) {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-dark);
}

.specs__metric:nth-last-child(-n + 2) {
  border-bottom: none;
}

.specs__metric-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bg-ice);
}

.specs__metric-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-sand);
  margin-top: 0.35rem;
}

.specs__metric-sub {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(247, 249, 250, 0.65);
}

/* Architectural 6-cell hairline grid */
.specs__grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-dark);
}

.specs__cell {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.specs__index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-sand);
}

.specs__cell-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bg-ice);
}

.specs__cell-text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: rgba(247, 249, 250, 0.74);
}

/* ==========================================================================
   5. LOCALIZAÇÃO, CONTATO & RESERVA DIRETA
   ========================================================================== */

.booking {
  background-color: var(--bg-ice);
}

.booking__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.booking__lead {
  margin: 1.25rem 0 2rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

.location-card {
  background-color: var(--bg-white);
  border: 1px solid var(--line-light);
}

.location-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-stone);
}

.location-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-card__pin {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.75rem;
  background-color: rgba(14, 34, 45, 0.86);
  color: var(--bg-ice);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.location-card__body {
  padding: 1.5rem;
}

.location-list {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.location-list__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.75rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.9rem;
}

.location-list__row:first-child {
  padding-top: 0;
}

.location-list__row dt {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-slate);
  padding-top: 0.15rem;
}

.location-list__row dd {
  margin: 0;
  color: var(--ink-deep);
}

.location-card__actions {
  margin-top: 1.35rem;
}

/* Booking Panel */
.booking-box {
  background-color: var(--bg-stone);
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--ink-deep);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.booking-box__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-sand);
  margin-bottom: 0.65rem;
}

.booking-box__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink-deep);
}

.booking-box__desc {
  margin: 0.8rem 0 1.65rem;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inquiry-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.field__label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-slate);
}

.field__input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  background-color: var(--bg-white);
  border: 1px solid var(--line-light-strong);
  border-radius: 2px;
  font-size: 1rem;
  color: var(--ink-deep);
  transition: border-color 0.2s ease;
}

.field__input:focus {
  outline: none;
  border-color: var(--ink-deep);
}

.contact-channels {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light-strong);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.contact-channels__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 1rem;
}

.contact-channels__label {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.contact-channels__value {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-channels__value:hover {
  color: var(--ink-slate);
  border-bottom-color: var(--accent-sand);
}

/* ==========================================================================
   6. FOOTER MINIMALISTA
   ========================================================================== */

.site-footer {
  background-color: var(--ink-deep);
  color: var(--bg-ice);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: 2.25rem;
  border-top: 1px solid var(--line-dark);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line-dark);
}

.site-footer__tagline {
  margin: 1rem 0 0;
  max-width: 22rem;
  font-size: 0.9rem;
  color: rgba(247, 249, 250, 0.66);
}

.site-footer__heading {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-sand);
  margin-bottom: 0.95rem;
}

.site-footer__nav,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.site-footer__nav a,
.site-footer__contact a {
  color: rgba(247, 249, 250, 0.8);
  transition: color 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__contact a:hover {
  color: var(--bg-ice);
}

.site-footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(247, 249, 250, 0.52);
}

/* ==========================================================================
   FLOATING WHATSAPP PILL (CLEAN ARCHITECTURAL)
   ========================================================================== */

.wa-float {
  position: fixed;
  right: 1.15rem;
  bottom: max(1.15rem, calc(env(safe-area-inset-bottom) + 0.75rem));
  z-index: 450;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 48px;
  padding: 0 1.1rem;
  background-color: rgba(14, 34, 45, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--bg-ice);
  border: 1px solid rgba(247, 249, 250, 0.22);
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(14, 34, 45, 0.24);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-water), background-color 0.25s ease;
}

.wa-float.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.wa-float:hover {
  background-color: var(--ink-slate);
}

/* ==========================================================================
   LIGHTBOX (CLEAN & MOBILE-FIRST)
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(9, 22, 30, 0.94);
  backdrop-filter: blur(8px);
}

.lightbox__shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: max(1rem, env(safe-area-inset-top)) var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  color: var(--bg-ice);
}

.lightbox__counter {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: rgba(247, 249, 250, 0.75);
}

.lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line-dark-strong);
  color: var(--bg-ice);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox__close:hover {
  background-color: rgba(247, 249, 250, 0.1);
}

.lightbox__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 1rem;
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1020px;
  max-height: 100%;
  width: 100%;
}

.lightbox__img {
  max-height: calc(100vh - 205px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background-color: rgba(247, 249, 250, 0.04);
}

.lightbox__info {
  width: 100%;
  max-width: 720px;
  margin-top: 1rem;
  text-align: center;
  color: var(--bg-ice);
}

.lightbox__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.lightbox__caption {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: rgba(247, 249, 250, 0.72);
}

.lightbox__nav {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(14, 34, 45, 0.75);
  border: 1px solid var(--line-dark-strong);
  color: var(--bg-ice);
  cursor: pointer;
  z-index: 3;
  transition: background-color 0.2s ease;
}

.lightbox__nav:hover {
  background-color: var(--accent-sand);
  border-color: var(--accent-sand);
}

.lightbox__nav--prev {
  left: 0;
}

.lightbox__nav--next {
  right: 0;
}

.lightbox__nav[hidden] {
  display: none;
}

/* ==========================================================================
   SCROLL REVEAL UTILITY
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.82s var(--ease-water), transform 0.82s var(--ease-water);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE-FIRST -> TABLET -> DESKTOP)
   ========================================================================== */

@media (min-width: 520px) {
  .inquiry-form__row {
    grid-template-columns: 1fr 1fr;
  }

  .location-list__row {
    grid-template-columns: 112px 1fr;
  }
}

@media (min-width: 640px) {
  .tabs-bar {
    display: flex;
    gap: clamp(2rem, 4vw, 3.25rem);
  }

  .tabs-bar__tab {
    flex-direction: row;
    align-items: baseline;
    gap: 0.55rem;
    padding: 0 0 1.05rem;
    white-space: nowrap;
  }

  .tabs-bar__count {
    display: inline;
  }

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

  .gallery-card--featured,
  .gallery-card--wide {
    grid-column: span 2;
  }

  .gallery-card--featured .gallery-card__trigger,
  .gallery-card--wide .gallery-card__trigger {
    aspect-ratio: 16 / 9;
  }

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

  .specs__cell {
    padding: 2rem 1.75rem 2rem 0;
  }

  .specs__cell:nth-child(even) {
    padding-left: 1.75rem;
    padding-right: 0;
    border-left: 1px solid var(--line-dark);
  }
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: inline-flex;
  }

  .hero__coords {
    display: inline-block;
  }

  .hero__headline-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.9rem;
    flex-shrink: 0;
  }

  .concept__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .concept__aside {
    padding-top: 3.75rem;
  }

  .environments__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
  }

  .gallery-card {
    grid-column: span 4;
  }

  .gallery-card--featured {
    grid-column: span 8;
  }

  .gallery-card--featured .gallery-card__trigger {
    aspect-ratio: 16 / 10;
  }

  .gallery-card:nth-child(2) .gallery-card__trigger {
    aspect-ratio: 4 / 5;
    height: 100%;
  }

  .gallery-card--wide {
    grid-column: span 12;
  }

  .gallery-card--wide .gallery-card__trigger {
    aspect-ratio: 21 / 9;
  }

  .specs__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .specs__metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .specs__metric {
    padding: 2rem 1.75rem;
    border-bottom: none;
    border-left: 1px solid var(--line-dark);
  }

  .specs__metric:first-child {
    padding-left: 0;
    border-left: none;
  }

  .specs__metric:nth-child(even) {
    padding-left: 1.75rem;
  }

  .specs__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .specs__cell {
    padding: 2.25rem 2rem;
    border-left: 1px solid var(--line-dark);
  }

  .specs__cell:nth-child(even) {
    padding: 2.25rem 2rem;
  }

  .specs__cell:nth-child(3n + 1) {
    padding-left: 0;
    border-left: none;
  }

  .specs__cell:nth-child(3n) {
    padding-right: 0;
  }

  .booking__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .site-footer__top {
    grid-template-columns: 1.4fr 0.8fr 1fr;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .lightbox__nav {
    position: static;
    transform: none;
    flex-shrink: 0;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .waterline-intro {
    display: none !important;
  }

  .hero__image,
  .hero__meta,
  .hero__title,
  .hero__subtitle,
  .hero__actions,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
