/* UI/UX PRO MAX - TERRARA HIGH END LUXURY (MODERN COLONIAL) */
:root {
  --color-bg-dark: #FDFBF7; /* Off-white colonial */
  --color-bg-light: #FFFFFF; /* Pure white */
  --color-gold: #b38b59; /* Ouro envelhecido escuro */
  --color-gold-light: #d4b895;
  --color-gold-dark: #7a5f3d;
  --color-text-main: #1a1a1a;
  --color-text-muted: #555555;
  
  --font-display: 'Cinzel', serif;
  --font-body: 'Manrope', sans-serif;
  
  --transition-slow: 1.2s cubic-bezier(0.2, 1, 0.3, 1);
  --transition-med: 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background: var(--color-bg-dark);
  color: var(--color-text-main);
}

body {
  overflow-x: hidden;
}
body.loading {
  overflow: hidden;
}

/* =========================================
   PRELOADER
========================================= */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s cubic-bezier(0.8, 0, 0.2, 1), opacity 1s;
}
.preloader.slide-up {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.preloader-logo {
  width: 250px;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 20px rgba(179, 139, 89, 0.2));
  animation: pulse-logo 2.5s infinite alternate ease-in-out;
}
@keyframes pulse-logo {
  0% { opacity: 0.8; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}
.progress-bar-container {
  width: 200px;
  height: 1px;
  background: rgba(197, 168, 128, 0.2);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-gold);
  transition: width 0.1s;
}
.loader-text {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--color-gold-dark);
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(197, 168, 128, 0.1);
  transition: var(--transition-med);
}
.nav-logo {
  height: 35px;
}
.nav-brand span {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--color-gold);
}
.nav-brand .renomados {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  opacity: 0.7;
}
.nav-btn {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 5px;
  transition: var(--transition-med);
}
.nav-btn:hover {
  color: var(--color-gold);
}

/* MOLDURA COLONIAL */
.colonial-frame {
  position: relative;
  background: var(--color-bg-light);
  border: 1px solid var(--color-gold-light);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.03);
}
.colonial-frame::before {
  content: '';
  position: absolute;
  top: 8px; right: 8px; bottom: 8px; left: 8px;
  border: 1px solid rgba(179, 139, 89, 0.2);
  pointer-events: none;
}

/* =========================================
   TYPOGRAPHY & UTILS
========================================= */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}
.section-dark { background: #0a0a0a; color: #fff; }
.section-dark p { color: #ccc; }
.section-dark h2 { color: #fff; }
.section-light { background: var(--color-bg-light); }
.section-tag {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  display: block;
  margin-bottom: 20px;
}
.section-tag.center { text-align: center; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(35px, 5vw, 70px);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 40px;
  color: var(--color-text-main);
}
h2 em {
  font-style: italic;
  color: var(--color-gold);
}
p {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
strong { color: var(--color-text-main); font-weight: 600; }

/* =========================================
   HERO
========================================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 60px;
}
.hero-image-bg {
  position: absolute;
  inset: 0;
  background: url('assets/client-ref-1.jpg') center/cover no-repeat;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 10, 10, 0.95) 20%, rgba(10, 10, 10, 0.4) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--color-gold);
  margin-bottom: 30px;
  display: inline-block;
  border-left: 2px solid var(--color-gold);
  padding-left: 15px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(45px, 8vw, 110px);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 30px;
  color: #fff;
}
.hero h1 em { font-style: italic; color: var(--color-gold); }
.hero .subtitle {
  font-size: clamp(16px, 2vw, 22px);
  max-width: 600px;
  color: #ddd;
}

.scroll-down {
  position: absolute;
  bottom: 50px;
  left: 60px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 20px;
}
.scroll-down p {
  font-size: 10px;
  letter-spacing: 0.3em;
  margin: 0;
  color: var(--color-gold-dark);
}
.scroll-line {
  width: 100px;
  height: 1px;
  background: rgba(197, 168, 128, 0.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 100%;
  background: var(--color-gold);
  animation: scrollLine 2s infinite ease-in-out;
}
@keyframes scrollLine {
  0% { transform: translateX(-30px); }
  100% { transform: translateX(100px); }
}

/* =========================================
   LAYOUTS (Dual, Grid)
========================================= */
.dual-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  padding: 150px 0;
}
.dual-layout.reverse .text-block { order: 2; }
.dual-layout.reverse .image-block { order: 1; }

.dual-image {
  position: relative;
  height: 600px;
  width: 100%;
}
.img-fachada {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(197, 168, 128, 0.2);
}
.img-fachada.f1 {
  width: 70%;
  height: 80%;
  top: 0;
  left: 0;
  z-index: 1;
}
.img-fachada.f2 {
  width: 55%;
  height: 60%;
  bottom: 0;
  right: 0;
  z-index: 2;
  transform: translateY(20px);
}

/* =========================================
   ENVIRONMENTS (Grid 3)
========================================= */
.environments { padding: 150px 0; border-top: 1px solid rgba(0,0,0,0.05); }
.header-center { text-align: center; max-width: 700px; margin: 0 auto 80px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.env-card {
  position: relative;
  background: var(--color-bg-light);
  border: 1px solid var(--color-gold-light);
  transition: var(--transition-med);
  padding: 40px;
  text-align: center;
}
.env-card::before {
  content: '';
  position: absolute;
  top: 8px; right: 8px; bottom: 8px; left: 8px;
  border: 1px solid rgba(179, 139, 89, 0.2);
  pointer-events: none;
}
.env-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}
.card-info { padding: 10px; }
.card-info h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-gold);
  margin-bottom: 15px;
}

/* =========================================
   SCOPE LIST OPEN
========================================= */
.scope-single-col {
  max-width: 900px;
  padding: 150px 60px;
}
.center { text-align: center; }
.scope-desc { max-width: 600px; margin: 0 auto 60px; }

.scope-list-open {
  margin-top: 40px;
  max-width: 100%;
}
.scope-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 30px;
  padding-bottom: 20px;
}
.section-dark .scope-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.scope-item h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-gold-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.section-dark .scope-item h3 {
  color: var(--color-gold-light);
}
.scope-item h3::before {
  content: '✦';
  color: var(--color-gold);
  font-size: 16px;
}
.scope-content {
  padding: 0 0 20px 0;
}
.scope-content p {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.7;
  font-weight: 500;
  color: #222;
}
.section-dark .scope-content p {
  color: #eee;
}
.section-dark .scope-content p strong {
  color: #fff;
}
.scope-content p:last-child {
  margin-bottom: 0;
}

/* =========================================
   INVESTMENT
========================================= */
.investment { padding: 150px 0; border-top: 1px solid rgba(0,0,0,0.05); }
.investment-box {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 40px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-gold-light);
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.04);
}
.investment-box::before {
  content: '';
  position: absolute;
  top: 12px; right: 12px; bottom: 12px; left: 12px;
  border: 1px solid rgba(179, 139, 89, 0.2);
  pointer-events: none;
}

.investment-desc {
  color: var(--color-gold-dark);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 40px;
}

.price-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: var(--color-text-main);
  margin-bottom: 40px;
}
.price-container .currency { font-size: clamp(20px, 4vw, 35px); margin-top: clamp(10px, 2vw, 30px); margin-right: 10px; color: var(--color-gold); font-family: var(--font-display); }
.price-container .value {
  font-family: var(--font-display);
  font-size: clamp(60px, 15vw, 140px);
  line-height: 1;
}
.price-container .cents { font-size: clamp(25px, 5vw, 45px); margin-top: clamp(10px, 2vw, 25px); color: var(--color-gold); font-family: var(--font-display); }

.terms { 
  font-size: 16px; 
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 60px; 
}

.cta-button {
  position: relative;
  display: inline-flex;
  padding: 25px 80px;
  background: var(--color-gold);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  overflow: hidden;
  transition: var(--transition-med);
  box-shadow: 0 15px 30px rgba(179, 139, 89, 0.2);
}
.cta-button span { position: relative; z-index: 2; }
.cta-button .btn-glow {
  position: absolute;
  inset: 0;
  background: var(--color-text-main);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: var(--transition-med);
  z-index: 1;
}
.cta-button:hover { color: var(--color-gold); box-shadow: 0 25px 50px rgba(179, 139, 89, 0.3); }
.cta-button:hover .btn-glow { transform: scaleY(1); }
.pulse {
  animation: pulse-btn 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulse-btn {
  to {
    box-shadow: 0 0 0 30px rgba(179, 139, 89, 0);
  }
}

/* =========================================
   AUTHORITY SECTION
========================================= */
.authority-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.auth-left {
  background: var(--color-bg-light);
  padding: 100px 80px;
  display: flex;
  align-items: center;
}
.auth-left-content {
  max-width: 550px;
}
.auth-eyebrow {
  color: var(--color-gold);
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  display: block;
}
.auth-left h2 {
  font-size: clamp(30px, 4vw, 55px);
  margin-bottom: 30px;
}
.auth-left p {
  font-size: 16px;
  line-height: 1.6;
}
.auth-quote {
  margin-top: 40px;
  color: var(--color-gold-dark);
  font-weight: 600;
}

.auth-right {
  background: #f4eee6;
  padding: 100px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}
.auth-card {
  background: #fff;
  padding: 50px;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
  text-align: center;
  max-width: 400px;
  border: 1px solid rgba(179, 139, 89, 0.2);
}
.qr-container {
  width: 220px;
  margin: 0 auto 30px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}
.qr-container img {
  width: 100%;
  height: auto;
  display: block;
}
.contact-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #666;
  margin-bottom: 15px;
  display: block;
  font-weight: 600;
}
.auth-contact-info h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 15px;
}
.auth-contact-info p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.auth-btn {
  display: inline-block;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  padding: 15px 40px;
  transition: var(--transition-med);
}
.auth-btn:hover {
  background: var(--color-gold);
}

/* =========================================
   FOOTER
========================================= */
.footer { padding: 80px 0 40px; background: #0a0a0a; border-top: 1px solid rgba(197, 168, 128, 0.2); }
.footer-content { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 40px; align-items: center; }
.footer-logo { width: 150px; opacity: 0.9; }
.footer-team { text-align: center; }
.footer-team h3 { font-size: 10px; letter-spacing: 0.2em; color: var(--color-gold); margin-bottom: 15px; }
.footer-team p { font-size: 13px; margin-bottom: 5px; color: #ccc; }
.footer-rights { text-align: right; font-size: 11px; color: #888; }

/* =========================================
   ANIMATIONS (Scroll Reveal)
========================================= */
.reveal, .fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}
.reveal.in, .fade-up.in { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  .dual-layout { grid-template-columns: 1fr; gap: 50px; padding: 100px 0; }
  .dual-layout.reverse .image-block { order: -1; }
  .dual-image { height: 400px; }
  .img-fachada.f1 { width: 80%; }
  .img-fachada.f2 { width: 60%; }
  
  .grid-3 { grid-template-columns: 1fr; }
  
  .authority-section { grid-template-columns: 1fr; }
  .auth-left, .auth-right { padding: 60px 20px; }
  
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-rights { text-align: center; }
  .navbar { padding: 12px 20px; flex-direction: column; gap: 8px; text-align: center; }
  .nav-logo { height: 28px; }
  
  .container { padding: 0 20px; }
  .investment { padding: 80px 0; }
  .investment-box { padding: 60px 20px; margin: 0 10px; }
  .colonial-frame { padding: 30px 15px; }
  .environments { padding: 80px 0; }
  .scope-single-col { padding: 80px 20px; }
  .hero { padding: 0 20px; }
}
