/* =============================================
   MARIO MIRANDA REAL ESTATE — STYLE v4
   ============================================= */

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

:root {
  --navy:        #08152a;
  --navy-mid:    #0d1f3c;
  --navy-light:  #162d54;

  --gold:        #C6973F;
  --gold-bright: #D4A74A;
  --gold-light:  #E2BF78;
  --gold-dark:   #A07830;

  --white:       #ffffff;
  --text:        #0d1e36;
  --text-light:  rgba(255,255,255,0.72);

  --border-gold: rgba(198,151,63,0.25);
  --border-white: rgba(255,255,255,0.13);

  --shadow:      0 20px 60px rgba(8,21,42,0.2);
  --shadow-gold: 0 6px 28px rgba(198,151,63,0.3);

  --ff-display:  'Playfair Display', Georgia, serif;
  --ff-body:     'Jost', sans-serif;
  --radius:      14px;
  --tr:          0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--ff-body); color: var(--white); background: var(--navy); line-height: 1.7; overflow-x: hidden; width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }

/* =============================================
   GLOBAL ANIMATED BACKGROUND
   ============================================= */
.global-bg {
  position: fixed; inset: 0; z-index: 0;
  background: var(--navy); overflow: hidden; pointer-events: none;
}
.g-orb { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.g-orb-1 { width: 800px; height: 800px; background: radial-gradient(circle, rgba(22,45,84,0.75) 0%, transparent 70%); top: -25%; left: -15%; animation: gOrb1 24s ease-in-out infinite; }
.g-orb-2 { width: 650px; height: 650px; background: radial-gradient(circle, rgba(198,151,63,0.13) 0%, transparent 70%); top: 5%; right: 0%; animation: gOrb2 30s ease-in-out infinite; }
.g-orb-3 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(13,31,60,0.9) 0%, transparent 70%); top: 40%; left: 20%; animation: gOrb3 20s ease-in-out infinite; }
.g-orb-4 { width: 550px; height: 550px; background: radial-gradient(circle, rgba(198,151,63,0.09) 0%, transparent 70%); bottom: 10%; right: 15%; animation: gOrb4 28s ease-in-out infinite; }
.g-orb-5 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(22,45,84,0.6) 0%, transparent 70%); bottom: -10%; left: 5%; animation: gOrb5 18s ease-in-out infinite; }
@keyframes gOrb1  { 0%,100%{transform:translate(0,0)scale(1)}   33%{transform:translate(70px,50px)scale(1.1)}  66%{transform:translate(-40px,80px)scale(0.92)} }
@keyframes gOrb2  { 0%,100%{transform:translate(0,0)scale(1)}   40%{transform:translate(-90px,60px)scale(1.12)} 75%{transform:translate(50px,-40px)scale(0.9)} }
@keyframes gOrb3  { 0%,100%{transform:translate(0,0)scale(1)}   50%{transform:translate(60px,-80px)scale(1.08)} }
@keyframes gOrb4  { 0%,100%{transform:translate(0,0)scale(1)}   35%{transform:translate(-50px,40px)scale(1.15)} 70%{transform:translate(70px,-30px)scale(0.88)} }
@keyframes gOrb5  { 0%,100%{transform:translate(0,0)scale(1)}   50%{transform:translate(40px,-60px)scale(1.06)} }
.g-grain { position:absolute; inset:0; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"); opacity:0.45; }

nav, section, footer, .whatsapp-float { position: relative; z-index: 1; }
section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

/* Hero is exact 100vh — handled in #hero block above.
   Nav is fixed, no extra offset needed. */

/* =============================================
   TYPOGRAPHY & SHARED
   ============================================= */
h1,h2,h3,h4 { font-family: var(--ff-display); line-height: 1.2; }
em { font-style: italic; color: var(--gold); }

.section-tag {
  display: inline-block; font-family: var(--ff-body); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--border-gold); padding: 0.35rem 0.9rem; border-radius: 50px;
  margin-bottom: 1.2rem; background: rgba(198,151,63,0.06);
}
.section-title { font-size: clamp(2rem,4vw,3rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.5rem; color: var(--white); }
.section-header { text-align: center; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-sub { font-size: 0.98rem; color: var(--text-light); }

/* =============================================
   GLASS SYSTEM
   ============================================= */
.glass-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--border-white);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}
.glass-card-light {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold-dark) 100%);
  color: #1a0f00; font-family: var(--ff-body); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.04em; padding: 0.9rem 2rem; border-radius: var(--radius);
  border: none; cursor: pointer; transition: var(--tr);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.07); color: var(--white);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  font-family: var(--ff-body); font-weight: 500; font-size: 0.88rem;
  padding: 0.9rem 1.6rem; border-radius: var(--radius); cursor: pointer; transition: var(--tr);
}
.btn-secondary:hover { background: rgba(255,255,255,0.13); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  font-family: var(--ff-body); font-weight: 500; font-size: 0.88rem;
  padding: 0.9rem 2rem; border-radius: var(--radius); cursor: pointer; transition: var(--tr);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.full-width { width: 100%; justify-content: center; }

/* =============================================
   REVEAL
   ============================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.4s, box-shadow 0.4s; }
.nav-inner { position: relative; }
#navbar.scrolled { background: rgba(8,21,42,0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(198,151,63,0.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem clamp(1rem, 3vw, 2rem); max-width: 1200px; margin: 0 auto; }

/* CCasas logo — left */
.nav-ccasas-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-ccasas-logo img { height: 28px; width: auto; opacity: 0.85; transition: opacity var(--tr); filter: brightness(1.1); }
.nav-ccasas-logo:hover img { opacity: 1; }

/* Mário Miranda logo — centre (absolute so it doesn't affect flex spacing) */
.logo { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }

.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.logo-sub { font-size: 0.58rem; font-weight: 300; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { font-size: 0.83rem; color: rgba(255,255,255,0.72); letter-spacing: 0.04em; transition: color var(--tr); position: relative; }
.nav-links a::after { content:''; position:absolute; bottom:-3px; left:0; width:0; height:1px; background:var(--gold); transition:width var(--tr); }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--tr); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu { display: none; background: rgba(8,21,42,0.97); backdrop-filter: blur(16px); border-top: 1px solid var(--border-gold); }
.mobile-menu ul { padding: 1rem 2rem; }
.mobile-menu li { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-menu a { color: rgba(255,255,255,0.8); font-size: 0.95rem; display: block; }
.mobile-cta { display: inline-block; margin-top: 0.5rem; background: var(--gold); color: #1a0f00 !important; padding: 0.65rem 1.4rem; border-radius: 8px; font-weight: 700; }
.mobile-menu.open { display: block; }


/* =============================================
   SOBRE — carousel aligned center to title
   ============================================= */
#sobre { padding: 7rem 0; }
.sobre-single { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.sobre-text { color: var(--text-light); margin-bottom: 1rem; font-size: 0.97rem; }
.sobre-text strong { color: var(--white); font-weight: 600; }

/* Carousel */
.valores-carousel-wrap { display: flex; flex-direction: column; gap: 1.2rem; }
.valores-carousel { position: relative; min-height: 220px; }
.valor-slide {
  position: absolute; inset: 0;
  border-radius: 20px; padding: 2.5rem;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.8rem;
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}
.valor-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; position: relative; }
.vs-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(198,151,63,0.1); border-radius: 12px; border: 1px solid var(--border-gold); margin-bottom: 0.5rem; }
.vs-icon svg { width: 24px; height: 24px; stroke: var(--gold); }
.valor-slide h3 { font-family: var(--ff-display); font-size: 1.4rem; color: var(--white); }
.valor-slide p { font-size: 0.92rem; color: var(--text-light); line-height: 1.75; }
.carousel-dots { display: flex; gap: 0.5rem; justify-content: center; }
.c-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.2); cursor: pointer; transition: var(--tr); padding: 0; }
.c-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }

/* Sobre stats with animated counters */
.sobre-stats {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 2rem; padding: 1.2rem 1.5rem;
  border-radius: 14px; flex-wrap: wrap;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-gold);
}
.sobre-stat { text-align: center; flex: 1; min-width: 70px; }
.sobre-stat-num { display: block; font-family: var(--ff-display); font-size: 1.4rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 0.3rem; }
.sobre-stat-label { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.sobre-stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.08); flex-shrink: 0; }

/* =============================================
   SERVIÇOS — featured card BRIGHT
   ============================================= */
.servicos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: start; }
.servico-card { border-radius: 18px; padding: 2.5rem 2rem; transition: transform var(--tr), box-shadow var(--tr); position: relative; overflow: hidden; }
.servico-card:not(.servico-featured)::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,var(--gold),var(--gold-light)); opacity:0; transition:opacity var(--tr); }
.servico-card:not(.servico-featured):hover::before { opacity: 1; }
.servico-card:not(.servico-featured):hover { transform: translateY(-5px); }

/* Featured — BRIGHT gold emphasis */
.servico-featured {
  background: linear-gradient(145deg, rgba(198,151,63,0.28) 0%, rgba(212,167,74,0.12) 100%) !important;
  border: 1px solid rgba(198,151,63,0.65) !important;
  box-shadow: 0 0 50px rgba(198,151,63,0.22), 0 20px 60px rgba(0,0,0,0.25) !important;
  transform: translateY(-10px);
}
.servico-featured:hover { transform: translateY(-16px); }
.servico-featured h3 { color: var(--white); }
.servico-featured p { color: rgba(255,255,255,0.85); }
.servico-featured .servico-list li { color: rgba(255,255,255,0.78); }

.featured-tag { position:absolute; top:1.2rem; right:1.2rem; font-size:0.62rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:#1a0f00; background:linear-gradient(135deg,var(--gold),var(--gold-bright)); padding:0.28rem 0.72rem; border-radius:50px; box-shadow:0 2px 12px rgba(198,151,63,0.45); }
.servico-icon { width: 50px; height: 50px; background: rgba(198,151,63,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.4rem; border: 1px solid var(--border-gold); }
.servico-icon svg { width: 22px; height: 22px; stroke: var(--gold); }
.featured-icon { background: rgba(198,151,63,0.2); border-color: rgba(198,151,63,0.5); }
.servico-card h3 { font-size: 1.18rem; color: var(--white); margin-bottom: 0.65rem; }
.servico-card p { font-size: 0.86rem; color: var(--text-light); margin-bottom: 1.4rem; line-height: 1.75; }
.servico-list { margin-bottom: 2rem; }
.servico-list li { font-size: 0.82rem; color: var(--text-light); padding: 0.44rem 0 0.44rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.05); position: relative; }
.servico-list li::before { content:'◆'; position:absolute; left:0; font-size:0.42rem; color:var(--gold); top:50%; transform:translateY(-50%); }
.servico-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.84rem; font-weight: 600; color: var(--gold); transition: gap var(--tr); }
.servico-btn:hover { gap: 0.75rem; }
.servico-btn-gold { color: var(--gold-light); }

/* Diferencial icon */
.dif-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(198,151,63,0.08); border-radius: 10px; border: 1px solid var(--border-gold); margin-bottom: 0.9rem; }
.dif-icon svg { width: 20px; height: 20px; stroke: var(--gold); }

/* =============================================
   PROCESSO — twin vertical timeline (2 col, no divider)
   ============================================= */
.twin-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  align-items: start;
}

.tl-col-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border-gold); }
.tl-col-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: rgba(198,151,63,0.1); border: 1px solid var(--border-gold); display: flex; align-items: center; justify-content: center; }
.tl-col-icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.tl-col-header h3 { font-family: var(--ff-display); font-size: 1.2rem; color: var(--white); }

.tl-steps { display: flex; flex-direction: column; }
.tl-step { display: grid; grid-template-columns: 44px 1fr; gap: 0 0.85rem; }
.tl-node { display: flex; flex-direction: column; align-items: center; }
.tl-num { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: rgba(198,151,63,0.12); border: 1px solid var(--border-gold); display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-size: 0.75rem; font-weight: 700; color: var(--gold); }
.tl-line { width: 1px; flex: 1; min-height: 20px; background: linear-gradient(to bottom, rgba(198,151,63,0.3), rgba(198,151,63,0.04)); margin: 4px 0; }
.tl-content { display: flex; align-items: flex-start; gap: 0.85rem; border-radius: 14px; padding: 1.1rem 1.2rem; margin-bottom: 0.85rem; transition: transform var(--tr); }
.tl-content:hover { transform: translateX(4px); }
.tl-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; background: rgba(198,151,63,0.08); border: 1px solid var(--border-gold); display: flex; align-items: center; justify-content: center; }
.tl-icon svg { width: 15px; height: 15px; stroke: var(--gold); }
.tl-content h4 { font-size: 0.87rem; font-weight: 600; color: var(--white); margin-bottom: 0.2rem; }
.tl-content p { font-size: 0.78rem; color: var(--text-light); line-height: 1.6; }

/* Centre divider */
.tl-divider { display: flex; flex-direction: column; align-items: center; padding-top: 3.8rem; }
.tl-div-line { width: 1px; flex: 1; background: linear-gradient(to bottom, transparent, rgba(198,151,63,0.2), transparent); min-height: 60px; }
.tl-div-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex-shrink: 0; box-shadow: 0 0 12px rgba(198,151,63,0.5); margin: 8px 0; }

/* =============================================
   VENDIDOS
   ============================================= */
.vendidos-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: 220px 220px; gap: 1rem; margin-bottom: 3rem; }
.vendido-card { border-radius: 16px; overflow: hidden; }
.vendido-img { width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; transition: transform 0.5s ease; }
.vendido-card:hover .vendido-img { transform: scale(1.04); }
.vendido-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,21,42,0.88) 0%, rgba(8,21,42,0.08) 55%, transparent 100%); }
.vendido-badge { position: absolute; top: 1rem; left: 1rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; color: #1a0f00; background: linear-gradient(135deg,var(--gold),var(--gold-bright)); padding: 0.28rem 0.72rem; border-radius: 50px; }
.vendido-info { position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem; }
.vendido-info h4 { font-family: var(--ff-display); font-size: 1rem; color: var(--white); margin-bottom: 0.2rem; }
.vendido-info span { font-size: 0.73rem; color: rgba(255,255,255,0.58); }
.vendido-card:first-child { grid-row: 1 / 3; }

.vendidos-cta { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; padding: 2rem; border-radius: 18px; border: 1px solid var(--border-gold); background: rgba(198,151,63,0.04); }
.vendidos-cta p { font-family: var(--ff-display); font-size: 1.15rem; font-style: italic; color: var(--text-light); }

/* =============================================
   IMÓVEIS PARA VENDA
   ============================================= */
.imoveis-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 3rem; }

.imovel-card { border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border-white); transition: transform var(--tr), box-shadow var(--tr); text-decoration: none; }
.imovel-card:hover { transform: translateY(-6px); box-shadow: 0 20px 56px rgba(0,0,0,0.35); border-color: var(--border-gold); }

.imovel-img { height: 220px; background-size: cover; background-position: center; position: relative; flex-shrink: 0; }
.imovel-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,21,42,0.5) 0%, transparent 60%); }

.imovel-status { position: absolute; top: 1rem; left: 1rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); background: rgba(22,45,84,0.85); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15); padding: 0.28rem 0.72rem; border-radius: 50px; }
.imovel-status.novo { background: rgba(198,151,63,0.85); color: #1a0f00; border-color: rgba(198,151,63,0.5); }

.imovel-info { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.85rem; }
.imovel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.imovel-header h4 { font-family: var(--ff-display); font-size: 1.02rem; color: var(--white); line-height: 1.3; }
.imovel-loc { font-size: 0.75rem; color: rgba(255,255,255,0.48); display: block; margin-top: 0.25rem; }
.imovel-price { font-family: var(--ff-display); font-size: 1rem; font-weight: 700; color: var(--gold); white-space: nowrap; }

.imovel-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.imovel-tags span { font-size: 0.7rem; font-weight: 500; color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 0.22rem 0.6rem; border-radius: 50px; }

.imovel-cta { display: flex; align-items: center; gap: 0.45rem; margin-top: auto; font-size: 0.82rem; font-weight: 600; color: var(--gold); transition: gap var(--tr); }
.imovel-cta svg { width: 16px; height: 16px; stroke: var(--gold); transition: transform var(--tr); }
.imovel-card:hover .imovel-cta { gap: 0.7rem; }
.imovel-card:hover .imovel-cta svg { transform: translateX(3px); }

.imoveis-footer { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; padding: 2rem; border-radius: 18px; border: 1px solid var(--border-gold); background: rgba(198,151,63,0.04); }
.imoveis-footer p { font-family: var(--ff-display); font-size: 1.1rem; font-style: italic; color: var(--text-light); }

/* =============================================
   TESTIMONIAL CAROUSEL — percentage-based, works everywhere
   ============================================= */
.testimonial-carousel { position: relative; overflow: hidden; padding-bottom: 2.5rem; }

.tc-track {
  display: flex;
  gap: 0;                /* NO gap — spacing via slide padding */
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Each slide: exact percentage width, padding creates visual gap */
.tc-slide {
  flex: 0 0 calc(100% / 3);
  min-width: 0;
  box-sizing: border-box;
  padding: 0 0.65rem;
}

.testemunho-card { border-radius: 18px; padding: 2rem; height: 100%; min-height: 260px; transition: transform var(--tr); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.testemunho-card:hover { transform: translateY(-4px); }

/* Stars always at top, centred */
.testemunho-stars { color: var(--gold); font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 1rem; display: block; text-align: left; }

.testemunho-card > p { font-size: 0.88rem; color: var(--white); line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; flex: 1; text-align: center; }
.testemunho-photo { padding: 0; }
.testemunho-photo-img { width: 100%; height: 100%; min-height: 260px; background-size: cover; background-position: center; border-radius: 18px; position: relative; overflow: hidden; }
.tp-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,21,42,0.94) 0%, rgba(8,21,42,0.3) 65%, transparent 100%); }
.tp-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.6rem; }
.tp-content p { font-size: 0.86rem; color: rgba(255,255,255,0.9); line-height: 1.75; margin-bottom: 1rem; font-style: italic; }
.tp-content .testemunho-top { position: absolute; top: 1rem; right: 1rem; margin-bottom: 0; }

.testemunho-autor { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.autor-foto-wrap { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--border-gold); overflow: hidden; }
.autor-foto { width: 100%; height: 100%; object-fit: cover; display: block; }
.autor-foto-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, rgba(22,45,84,0.9), rgba(13,31,60,0.95)); display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-size: 1rem; color: var(--gold); font-weight: 700; }
.testemunho-autor strong { display: block; font-size: 0.86rem; color: var(--white); }
.testemunho-autor span { font-size: 0.74rem; color: rgba(255,255,255,0.45); }

/* Dots only — centred, no arrows */
.tc-dots { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 0.45rem; align-items: center; }
.tc-dot-item { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.2); border: none; cursor: pointer; transition: var(--tr); padding: 0; }
.tc-dot-item.active { background: var(--gold); width: 20px; border-radius: 4px; }

/* =============================================
   AVALIAÇÃO — all text white
   ============================================= */
#avaliacao { padding: 7rem 0; }

.avaliacao-box { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; border-radius: 24px; padding: 4rem; border: 1px solid var(--border-gold) !important; }

.avaliacao-text h2 { font-size: clamp(1.8rem,3vw,2.5rem); margin-bottom: 1rem; color: var(--white); }
.avaliacao-text p { font-size: 0.92rem; color: var(--text-light); line-height: 1.8; }

.avaliacao-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.38rem; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--ff-body); font-size: 0.9rem; color: var(--white);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 0.78rem 1rem; transition: border-color var(--tr); outline: none; resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.7); }
.form-group select option { background: var(--navy-mid); color: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); background: rgba(198,151,63,0.05); }
.form-note { grid-column:1/-1; font-size:0.71rem; color:rgba(255,255,255,0.25); text-align:center; }

/* Consent checkbox */
.form-consent { grid-column: 1/-1; }
.consent-label { display: flex; align-items: flex-start; gap: 0.65rem; cursor: pointer; font-size: 0.82rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.consent-label input[type="checkbox"] { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--gold); cursor: pointer; }
.consent-link { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.consent-link:hover { color: var(--gold-light); }

/* =============================================
   CONTACTO — centred text + icons
   ============================================= */
#contacto { padding: 7rem 0; }
.contacto-centrado {
  max-width: 600px; margin: 0 auto; text-align: center;
}
.contacto-centrado .section-title { margin-bottom: 1rem; }
.contacto-sub { font-size: 0.97rem; color: var(--text-light); margin-bottom: 2.5rem; line-height: 1.85; }

/* Social buttons centred */
.social-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.social-icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  padding: 1rem 1.3rem; border-radius: 14px; transition: var(--tr); min-width: 72px; cursor: pointer;
}
.social-icon-btn:hover { transform: translateY(-4px); border-color: var(--border-gold) !important; }
.social-icon-btn svg { width: 22px; height: 22px; stroke: var(--gold); flex-shrink: 0; }
.social-icon-btn span { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* =============================================
   FOOTER
   ============================================= */
footer { padding: 3rem 0; border-top: 1px solid rgba(198,151,63,0.12); }
.footer-inner { text-align: center; }
.footer-inner .logo-name { font-family: var(--ff-display); font-size: 1.3rem; color: var(--white); display: block; margin-bottom: 0.1rem; }
.footer-inner .logo-sub { font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 1.2rem; }
.footer-tagline { font-size: 0.83rem; color: rgba(255,255,255,0.35); margin-bottom: 1.5rem; font-style: italic; }
.footer-links { display: flex; gap: 2rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.38); transition: color var(--tr); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.7rem; color: rgba(255,255,255,0.16); }

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; width: 58px; height: 58px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.35); z-index: 998; transition: transform var(--tr); animation: waPulse 2.5s ease-in-out infinite; }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }
.whatsapp-float:hover { transform: scale(1.1); animation: none; }
@keyframes waPulse { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,0.35)} 50%{box-shadow:0 4px 30px rgba(37,211,102,0.6)} }
.float-tooltip { position:absolute; right:70px; background:var(--navy-mid); color:var(--white); font-family:var(--ff-body); font-size:0.77rem; padding:0.38rem 0.8rem; border-radius:6px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity var(--tr); border:1px solid var(--border-gold); }
.whatsapp-float:hover .float-tooltip { opacity: 1; }
@media (max-width: 768px) {
  .whatsapp-float { width: 48px; height: 48px; bottom: 1.2rem; right: 1.2rem; }
  .whatsapp-float svg { width: 22px; height: 22px; }
}

/* WA float on mobile — move to left so it never covers right-side buttons */
@media (max-width: 768px) {
  .whatsapp-float { bottom: 1.5rem; right: 1.5rem; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 500px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  z-index: 0;
}

/* DESKTOP: dark right side, Mário visible left */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      transparent        0%,
      transparent       42%,
      rgba(8,21,42,0.70) 58%,
      rgba(8,21,42,0.93) 72%,
      rgba(8,21,42,0.97) 100%
    ),
    linear-gradient(to top, rgba(8,21,42,0.35) 0%, transparent 30%);
}

/* DESKTOP: flex row, content pushed to right */
.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
  box-sizing: border-box;
  width: 100%;
}

.hero-content {
  width: 38%;
  min-width: 0;
  max-width: 480px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(198,151,63,0.45);
  padding: 0.35rem 1rem; border-radius: 50px;
  margin-bottom: 1.3rem;
  background: rgba(198,151,63,0.08);
}
.hero-title {
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 700; color: var(--white);
  line-height: 1.1; margin-bottom: 1rem;
}
.hero-title em { display: block; }
.hero-sub {
  font-size: clamp(0.88rem, 1vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  line-height: 1.8; margin-bottom: 1.8rem;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-glass-badge, .hero-disponivel, .hgb-dot { display: none; }

.servico-note {
  font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.6;
  margin-bottom: 1.2rem; padding: 0.7rem 1rem;
  border-left: 2px solid var(--border-gold);
  border-radius: 0 8px 8px 0;
  background: rgba(198,151,63,0.05);
}
.servico-note strong { color: var(--gold-light); }

/* =============================================
   RESPONSIVE
   ============================================= */

/* ≤1100px — gradient flips vertical, text slides to bottom-centre */
@media (max-width: 1100px) {
  .hero-img { object-position: center 10%; }
  .hero-overlay {
    background: linear-gradient(to top,
      rgba(8,21,42,0.98) 0%,
      rgba(8,21,42,0.94) 30%,
      rgba(8,21,42,0.45) 50%,
      transparent        68%
    );
  }
  .hero-inner {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2rem 3rem;
  }
  .hero-content {
    width: 100%;
    max-width: 600px;
    min-width: 0;
    text-align: center;
  }
  .hero-badge { display: none; }
  .hero-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
  .hero-actions { justify-content: center; }
}

/* ≤768px — mobile, everything smaller but fully visible */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 4rem 0; }

  .hero-img { object-position: center 8%; }
  .hero-overlay {
    background: linear-gradient(to top,
      rgba(8,21,42,0.98) 0%,
      rgba(8,21,42,0.95) 28%,
      rgba(8,21,42,0.45) 50%,
      transparent        68%
    );
  }
  .hero-inner {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1.5rem 7rem;
  }
  .hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
  }
  .hero-title { font-size: clamp(1.4rem, 5.5vw, 1.9rem); margin-bottom: 0.4rem; }
  .hero-sub { font-size: 0.82rem; line-height: 1.55; margin-bottom: 0.9rem; }
  .hero-actions {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    flex: 1;
    min-width: 0;
    font-size: 0.76rem;
    padding: 0.55rem 0.75rem;
    justify-content: center;
    text-align: center;
  }
  /* Section layout */
  .sobre-single { grid-template-columns: 1fr; gap: 2.5rem; }
  .valores-carousel { min-height: 180px; }
  .servicos-grid { grid-template-columns: 1fr; }
  .servico-featured { transform: none; }
  .twin-timeline { grid-template-columns: 1fr; gap: 2rem; }
  .tl-col-header h3 { font-size: 1.05rem; }
  .vendidos-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; gap: 0.75rem; }
  .vendido-card:first-child { grid-row: auto; }
  .vendidos-cta { flex-direction: column; text-align: center; gap: 1rem; }
  .avaliacao-box { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.5rem; }
  .avaliacao-form { grid-template-columns: 1fr; }
  .imoveis-grid { grid-template-columns: 1fr; }
  .imoveis-footer { flex-direction: column; text-align: center; gap: 1rem; }
  .social-row { gap: 0.6rem; }
  .section-title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
}

/* ≤450px — small phones */
@media (max-width: 450px) {
  .container { padding: 0 1rem; }
  .nav-ccasas-logo img { height: 22px; }
  section { padding: 3rem 0; }
  .hero-inner { padding: 0 1rem 5rem; }
  .hero-title { font-size: clamp(1.25rem, 6vw, 1.6rem); }
  .hero-sub { font-size: 0.76rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { font-size: 0.72rem; padding: 0.48rem 0.65rem; }
  .vendidos-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 200px); gap: 0.75rem; }
  .servico-card { padding: 1.5rem 1.2rem; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
}

/* =============================================
   POLÍTICA DE PRIVACIDADE — MODAL
   ============================================= */
.privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.privacy-modal.open { display: flex; }

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,21,42,0.85);
  backdrop-filter: blur(6px);
}

.privacy-modal-box {
  position: relative;
  background: #0d1f3c;
  border: 1px solid rgba(198,151,63,0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.privacy-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.08);
  border: none; color: var(--white);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.privacy-modal-close:hover { background: rgba(255,255,255,0.18); }

.privacy-modal-content {
  padding: 2.5rem 2.5rem 2rem;
  overflow-y: auto;
  flex: 1;
}
.privacy-modal-content h2 {
  font-family: var(--ff-display);
  font-size: 1.5rem; color: var(--white);
  margin-bottom: 0.3rem;
}
.privacy-date { font-size: 0.72rem; color: rgba(255,255,255,0.3); margin-bottom: 1.8rem; }
.privacy-modal-content h3 {
  font-family: var(--ff-display);
  font-size: 0.95rem; color: var(--gold-light);
  margin: 1.5rem 0 0.4rem;
}
.privacy-modal-content p { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.75; margin-bottom: 0.5rem; }
.privacy-modal-content a { color: var(--gold); text-underline-offset: 3px; }
.privacy-modal-content strong { color: var(--white); }

@media (max-width: 450px) {
  .privacy-modal-content { padding: 2rem 1.5rem 1.5rem; }
}