/* Paleta corporativa */
:root {
  --navy: #0A1E3F;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --slate: #F5F7FB;
  --text: #121826;
  --muted: #6B7280;
  --shadow: rgba(10, 30, 63, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Utilitários */
.lead { font-size: 1.25rem; color: var(--white); opacity: 0.95; }
.section-title { font-size: 2rem; margin: 0 0 24px; color: var(--navy); }
.section { padding: 80px 0; scroll-margin-top: 96px; }
.section.alt { background: var(--slate); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; border: 2px solid transparent; }
.btn i { font-size: 1.05em; }
.btn-lg { padding: 14px 22px; font-size: 1.03rem; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2); }
.btn-primary { background: linear-gradient(180deg, #E7C96A 0%, var(--gold) 100%); color: var(--navy); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 10px 26px var(--shadow); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline.gold { color: var(--gold); border-color: var(--gold); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--shadow); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline.gold { color: var(--gold); border-color: var(--gold); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; height: 72px; display: flex; align-items: center; background: rgba(10, 30, 63, 0.85); backdrop-filter: saturate(160%) blur(6px); z-index: 1000; }
.site-header.scrolled { background: var(--navy); box-shadow: 0 8px 24px var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; text-decoration: none; }
.logo i { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: transparent; border: 0; color: var(--white); font-size: 24px; }
.main-nav ul { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--white); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--gold); }
.main-nav ul .menu-cta { display: none; }

/* Hero */
.hero { position: relative; min-height: 86vh; display: grid; align-items: center; }
.logo img { height: 36px; width: auto; display: block; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(rgba(10,30,63,0.75), rgba(10,30,63,0.7)), url('../img/hero.jpg') center/cover no-repeat; }
.hero-content { position: relative; color: var(--white); max-width: 840px; padding-top: 72px; }
.hero h1 { font-size: 2.8rem; margin: 0 0 10px; }
.hero .hero-actions { margin-top: 24px; }

/* Cards 3 */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid #e8ecf2; border-radius: 12px; padding: 22px; box-shadow: 0 10px 28px var(--shadow); transition: transform 0.2s ease; }
.card:hover { transform: translateY(-2px); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; background: #fff4e0; color: var(--gold); display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.card h3 { margin: 8px 0 6px; color: var(--navy); }
.card p { color: var(--muted); }

/* Serviços */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-item { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 12px; background: var(--white); border: 1px solid #e8ecf2; border-radius: 12px; padding: 16px; }
.service-item i { color: var(--gold); }
.service-item span { color: var(--navy); font-weight: 500; }

/* Sobre */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; }
.about-photo img { border-radius: 16px; box-shadow: 0 16px 32px var(--shadow); }
.about-text p { color: var(--text); line-height: 1.6; }
.about-actions { margin-top: 16px; }

/* Imóveis */
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.property-card { border: 1px solid #e8ecf2; border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 10px 28px var(--shadow); }
.property-thumb { height: 200px; background-size: cover; background-position: center; }
.property-info { padding: 14px 16px; }
.property-info h3 { margin: 0 0 6px; color: var(--navy); }
.property-info p { margin: 0; color: var(--muted); }

/* Contato */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 16px; }
.contact-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--text); }
.contact-list i { color: var(--gold); }
.contact-form h3 { margin-top: 0; color: var(--navy); }
.form-row { display: grid; gap: 8px; margin-bottom: 12px; }
.form-row label { font-weight: 600; color: var(--navy); }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #dbe1ea; border-radius: 10px; font-size: 1rem; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15); }
.form-actions { display: flex; gap: 12px; align-items: center; }
.form-feedback { margin-top: 8px; color: var(--navy); font-weight: 500; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.footer-links a { color: var(--gold); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .sep { color: #9aa4b2; margin: 0 8px; }

/* Animações leves de rolagem */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsivo - Desktop Grande (1200px+) */
@media (min-width: 1200px) {
  .container { max-width: 1400px; padding: 0 32px; }
  .hero h1 { font-size: 3.2rem; }
  .lead { font-size: 1.35rem; }
  .section { padding: 100px 0; }
  .section-title { font-size: 2.4rem; }
}

/* Responsivo - Desktop Médio (992px - 1199px) */
@media (max-width: 1199px) {
  .container { padding: 0 28px; }
  .hero h1 { font-size: 2.6rem; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Responsivo - Tablet Landscape (992px - 1023px) */
@media (max-width: 1023px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .about { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .properties-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 70px 0; }
}

/* Responsivo - Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
  .container { padding: 0 24px; }
  .hero h1 { font-size: 2.3rem; }
  .lead { font-size: 1.15rem; }
  .section-title { font-size: 1.8rem; }
  .card { padding: 20px; }
  .service-item { padding: 14px; }
  .property-thumb { height: 180px; }
  .hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Responsivo - Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
  .site-header { height: 64px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .main-nav ul { 
    position: absolute; 
    top: 64px; 
    right: 0; 
    left: 0; 
    background: var(--navy); 
    display: none; 
    flex-direction: column; 
    padding: 16px; 
    box-shadow: 0 8px 24px var(--shadow);
  }
  .main-nav ul.open { display: flex; }
  .main-nav li { padding: 12px 16px; width: 100%; }
  .main-nav a { display: block; width: 100%; }
  
  .hero { min-height: 75vh; }
  .hero h1 { font-size: 2rem; line-height: 1.2; }
  .hero-content { padding-top: 64px; }
  .lead { font-size: 1.05rem; }
  
  .section { padding: 50px 0; }
  .section-title { font-size: 1.6rem; margin-bottom: 20px; }
  
  .cards-3 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 18px; }
  .card-icon { width: 48px; height: 48px; font-size: 20px; }
  
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-item { grid-template-columns: 20px 1fr; padding: 12px; }
  
  .properties-grid { grid-template-columns: 1fr; gap: 16px; }
  .property-thumb { height: 200px; }
  
  .about { text-align: left; }
  .about-photo { order: -1; }
  
  .contact { gap: 24px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; justify-content: center; }
  
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .header-cta { display: none; }
  .main-nav ul .menu-cta { display: block; padding: 8px 0; }
  .main-nav ul .menu-cta .btn { width: 100%; justify-content: center; }
}

/* Responsivo - Mobile Portrait (320px - 575px) */
@media (max-width: 575px) {
  .container { padding: 0 16px; }
  
  .site-header { height: 60px; }
  .main-nav ul { top: 60px; padding: 12px; }
  .logo { font-size: 0.9rem; }
  .logo img { height: 32px; }
  
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 1.75rem; }
  .hero-content { padding-top: 60px; }
  .lead { font-size: 1rem; }
  
  .section { padding: 40px 0; }
  .section-title { font-size: 1.4rem; }
  
  .card { padding: 16px; }
  .card-icon { width: 44px; height: 44px; font-size: 18px; }
  .card h3 { font-size: 1.1rem; }
  
  .service-item { padding: 10px; font-size: 0.9rem; }
  
  .property-thumb { height: 180px; }
  .property-info { padding: 12px 14px; }
  .property-info h3 { font-size: 1rem; }
  
  .btn { padding: 10px 16px; font-size: 0.9rem; }
  .btn-lg { padding: 12px 18px; font-size: 1rem; }
  
  .form-row input, .form-row textarea { padding: 10px 12px; font-size: 0.9rem; }
  
  .contact-list li { font-size: 0.9rem; }
}

/* Melhorias para telas muito pequenas (até 320px) */
@media (max-width: 320px) {
  .container { padding: 0 12px; }
  .hero h1 { font-size: 1.5rem; }
  .section { padding: 32px 0; }
  .card { padding: 14px; }
  .btn { padding: 8px 14px; font-size: 0.85rem; }
}