/* ============================================================
   PROPOSTA 01 — FIEL AO BRIEFING / CORPORATE PRIME
   ArtBarra Imóveis RJ — Barra Prime Offices
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bordo:        #6E1423;
  --bordo-dark:   #4C0E19;
  --bordo-darker: #2A0810;
  --creme:        #F7F3EC;
  --dourado:      #B08D57;
  --dourado-lt:   #C9A96E;
  --chumbo:       #3A3A3A;
  --white:        #FFFFFF;
  --header-h:     92px;
  --artbarra-cream:  #F5F0EC;
  --artbarra-red:    #7B0000;
  --artbarra-red-tx: #3D1212;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', Arial, sans-serif;
  color: var(--chumbo);
  background: var(--creme);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== WATERMARK — canto inferior direito, em todas as fotos ===== */
.photo-frame {
  position: relative;
  overflow: hidden;
  display: block;
  line-height: 0;
  background: #e7e0d3;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.photo-frame:hover img { transform: scale(1.04); }

/* SUBSTITUIR PELA LOGO DEFINITIVA SE HOUVER VERSÃO COM FUNDO TRANSPARENTE */
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../NOVO_BARRA/LOGOTIPOS_MARCA_DAGUA/LOGOTIPO_MARCADAGUA.jpeg') center / 65% auto no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

/* ===== HEADER — padrão ArtBarra (mesmo topo usado no deploy_definitivo) ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--artbarra-cream);
  border-bottom: 2px solid var(--artbarra-red);
  z-index: 1000;
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(123,0,0,.14); }
.header-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-wordmark {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: .9;
}
.brand-wordmark-small {
  font-family: 'Pinyon Script', cursive;
  font-size: 19px;
  color: var(--artbarra-red);
}
.brand-wordmark-large {
  font-family: 'Pinyon Script', cursive;
  font-size: 38px;
  color: var(--artbarra-red);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-link {
  color: var(--artbarra-red-tx);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--artbarra-red); }
.nav-link--dropdown {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-caret { font-size: 10px; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-top: 2px solid var(--artbarra-red);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  min-width: 150px;
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 20;
}
.nav-dropdown-menu a {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--artbarra-red-tx);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nav-dropdown-menu a:hover { background: var(--artbarra-cream); color: var(--artbarra-red); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: flex; }

.header-wa {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--artbarra-red);
  background: rgba(123,0,0,.06);
  border: 1px solid rgba(123,0,0,.3);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.header-wa:hover { background: var(--artbarra-red); border-color: var(--artbarra-red); color: var(--white); }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--artbarra-red);
  transition: transform .25s, opacity .25s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-frame { position: absolute; inset: 0; z-index: 0; }
/* Hero fica sem marca d'água — aplicada apenas nas fotos de galeria/exibição */
.hero-frame::after { content: none; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,8,16,.75) 0%, rgba(42,8,16,.55) 45%, rgba(42,8,16,.88) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: var(--white);
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dourado-lt);
  margin-bottom: 18px;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 22px;
}
.hero-lead {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  color: #F0E6DC;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .25s;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--dourado);
  color: var(--bordo-darker);
}
.btn--primary:hover { background: var(--dourado-lt); }
.btn--whatsapp {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--whatsapp:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

/* ===== INTRO ===== */
.intro-section { padding: 90px 0; background: var(--creme); }
.intro-badge {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 22px;
}
.intro-p {
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 16.5px;
  color: var(--chumbo);
}
.intro-p--lead {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--bordo);
  line-height: 1.5;
}
.intro-p--highlight {
  font-weight: 700;
  color: var(--bordo);
  margin-top: 30px;
}

/* ===== SECTIONS ===== */
.content-section { padding: 90px 0; background: var(--creme); }
.content-section--bordo { background: var(--bordo); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  text-align: center;
  color: var(--bordo);
  position: relative;
}
.section-title--light { color: var(--creme); }
.section-title::after {
  content: '';
  display: block;
  width: 54px;
  height: 2px;
  background: var(--dourado);
  margin: 18px auto 20px;
}
.section-subtitle {
  text-align: center;
  color: var(--chumbo);
  font-size: 16px;
  margin-bottom: 48px;
  opacity: .85;
}
.section-subtitle--light { color: #E9DCC9; }

.condo-intro-text {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}
.condo-intro-text p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.85;
}
.content-section--bordo .condo-intro-text p { color: #EFE3D3; }

/* ===== PHOTO GRIDS ===== */
.photo-grid {
  display: grid;
  gap: 18px;
}
.photo-grid--2col { grid-template-columns: repeat(2, 1fr); }
.photo-grid--3col { grid-template-columns: repeat(3, 1fr); }
.photo-grid--mall { grid-template-columns: repeat(4, 1fr); }
.photo-grid .photo-frame { height: 240px; border-radius: 3px; cursor: pointer; border: 1px solid rgba(176,141,87,.35); }
.gallery-item { cursor: pointer; position: relative; }
.gallery-item img { transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

.photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 22px 12px 10px;
  z-index: 3;
  pointer-events: none;
}

/* ===== SALAS SECTION ===== */
.salas-section { background: var(--creme); padding-top: 90px; padding-bottom: 40px; }
.salas-intro { padding-bottom: 20px; }
.salas-index {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.sala-pill {
  padding: 10px 22px;
  border: 1.5px solid var(--bordo);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bordo);
  letter-spacing: .04em;
  transition: all .2s;
}
.sala-pill:hover { background: var(--bordo); color: var(--creme); }

.sala-block {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 40px;
}
.sala-bg { position: absolute; inset: 0; z-index: 0; }
.sala-bg img { width: 100%; height: 100%; object-fit: cover; }
.sala-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(42,8,16,.92) 0%, rgba(42,8,16,.78) 38%, rgba(42,8,16,.35) 100%);
  z-index: 1;
}
.sala-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  padding-top: 70px;
  padding-bottom: 70px;
  max-width: 900px;
}
.sala-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dourado-lt);
  margin-bottom: 14px;
}
.sala-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  margin-bottom: 18px;
}
.sala-desc {
  font-size: 16px;
  color: #EFE3D3;
  font-style: italic;
  max-width: 560px;
  margin-bottom: 32px;
}
.sala-gallery {
  grid-template-columns: repeat(3, 1fr);
  max-width: 640px;
}
.sala-gallery .photo-frame { height: 170px; }

.gallery-placeholder {
  height: 170px;
  border: 2px dashed rgba(255,255,255,.45);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 10px;
  background: rgba(255,255,255,.05);
}

/* ===== CTA FINAL ===== */
.cta-section {
  background: var(--bordo-dark);
  padding: 100px 0;
  text-align: center;
}
.cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dourado-lt);
  margin-bottom: 16px;
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  margin-bottom: 14px;
}
.cta-desc { color: #E9DCC9; margin-bottom: 40px; font-size: 16px; }
.cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--dourado);
  color: var(--bordo-darker);
  padding: 18px 34px;
  border-radius: 4px;
  font-weight: 700;
  transition: background .25s, transform .2s;
}
.cta-wa:hover { background: var(--dourado-lt); transform: translateY(-2px); }
.cta-wa-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.3; }
.cta-wa-text > span:first-child { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.wa-number { font-size: 15px; font-weight: 700; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bordo-darker);
  padding: 60px 0 40px;
  color: #D9C7B3;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-brand-chip {
  background: var(--white);
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-flex;
}
.footer-brand-chip img { height: 30px; width: auto; }
.footer-contact-text { font-size: 14px; color: #D9C7B3; }
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--dourado);
  color: var(--dourado-lt);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
}
.footer-wa:hover { background: rgba(176,141,87,.15); }

.footer-announce {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 700;
  color: var(--dourado-lt);
  letter-spacing: .02em;
  max-width: 640px;
}

.footer-disclaimer {
  font-size: 11.5px;
  color: #A08A78;
  max-width: 760px;
  line-height: 1.6;
  border-top: 1px solid rgba(176,141,87,.25);
  padding-top: 22px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,3,5,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s;
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-body {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  line-height: 0;
}
.lightbox-body img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border: 2px solid rgba(176,141,87,.4);
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
/* SUBSTITUIR PELA LOGO DEFINITIVA SE HOUVER VERSÃO COM FUNDO TRANSPARENTE */
.lightbox-body::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: clamp(70px, 16%, 150px);
  height: clamp(26px, 6%, 55px);
  background: url('../NOVO_BARRA/LOGOTIPOS_MARCA_DAGUA/LOGOTIPO_MARCADAGUA.jpeg') no-repeat center / contain;
  opacity: .7;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 3;
}
.lightbox-close {
  position: absolute;
  top: -46px; right: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: var(--dourado); color: var(--bordo-darker); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .photo-grid--mall { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--artbarra-cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    border-bottom: 2px solid var(--artbarra-red);
  }
  .nav.open { max-height: 500px; }
  .nav-link {
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid rgba(123,0,0,.1);
  }
  .nav-link--dropdown { width: 100%; justify-content: space-between; padding: 16px 24px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    display: none;
    min-width: 0;
    width: 100%;
    background: rgba(123,0,0,.05);
    border-top: none;
    box-shadow: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .nav-dropdown-menu a { color: var(--artbarra-red-tx); padding: 12px 40px; }
  .nav-dropdown-menu a:hover { background: rgba(123,0,0,.08); color: var(--artbarra-red); }

  .header-wa span:not(.wa-number) { display: none; }
  .header-wa .wa-number { display: none; }
  .menu-btn { display: flex; }
  .header-inner { gap: 14px; }

  .photo-grid--mall { grid-template-columns: repeat(2, 1fr); }
  .photo-grid--3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .photo-grid--2col { grid-template-columns: 1fr; }
  .photo-grid--3col { grid-template-columns: 1fr; }
  .photo-grid--mall { grid-template-columns: repeat(2, 1fr); }
  .sala-gallery { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .sala-gallery .photo-frame:first-child { grid-column: span 2; height: 220px; }
  .sala-block { min-height: unset; padding: 60px 0; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { justify-content: center; width: 100%; }
  .cta-wa { flex-direction: row; padding: 16px 22px; }
  .header-wa { padding: 8px 12px; }
}
