/* ============================================================
   Melk Empreendimentos — Site Institucional
   Design tokens
   ============================================================ */
:root {
  --navy-deep: #0b1d33;
  --navy: #10263f;
  --navy-soft: #16324f;
  --gold: #c89b5c;
  --gold-light: #e3c48d;
  --sand: #f4efe6;
  --white: #ffffff;
  --gray-900: #1a1f26;
  --gray-700: #4a535e;
  --gray-500: #7a8590;
  --gray-200: #e4e7eb;
  --gray-100: #f4f6f8;

  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(11, 29, 51, 0.08);
  --shadow-md: 0 12px 32px rgba(11, 29, 51, 0.14);
  --shadow-lg: 0 24px 60px rgba(11, 29, 51, 0.22);

  --container-w: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-deep);
}

p { margin: 0 0 1em; color: var(--gray-700); }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--navy-deep);
  color: var(--navy-deep);
}
.btn-outline:hover { background: var(--navy-deep); color: var(--white); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11, 29, 51, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  color: var(--white);
}
.brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}
.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 2px;
}

.nav-desktop { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--sand);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { color: var(--gold-light); border-color: var(--gold-light); }

.nav-cta { flex-shrink: 0; padding: 10px 20px; font-size: 0.88rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--sand);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-panel {
  display: none;
  background: var(--navy);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.nav-mobile-panel.is-open { max-height: 480px; }
.nav-mobile-panel ul { padding: 8px 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.nav-mobile-panel a {
  display: block;
  padding: 12px 4px;
  color: var(--sand);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,29,51,0.78) 0%, rgba(11,29,51,0.62) 45%, rgba(11,29,51,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  padding-bottom: 90px;
  max-width: 760px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin-bottom: 20px;
}
.hero-lead {
  color: var(--sand);
  font-size: 1.05rem;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.hero-actions .btn-outline { border-color: var(--sand); color: var(--sand); }
.hero-actions .btn-outline:hover { background: var(--sand); color: var(--navy-deep); }

/* ============================================================
   Sections — generic
   ============================================================ */
.section { padding: 96px 0; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-lead { max-width: 640px; font-size: 1.05rem; }

.section-sobre { background: var(--gray-100); }

.sobre-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  margin-top: 40px;
  align-items: start;
}
.sobre-text p { font-size: 1.02rem; }

.sobre-values {
  display: grid;
  gap: 20px;
}
.sobre-values li {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.value-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 4px;
  font-size: 1.05rem;
}
.value-desc { font-size: 0.92rem; color: var(--gray-700); }

/* ---------- Empreendimentos ---------- */
.project-card {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.project-media { position: relative; min-height: 320px; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 999px;
}
.project-info {
  padding: 44px 44px;
  color: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-info h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.project-tagline {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.project-desc { color: var(--sand); opacity: 0.92; }
.project-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}
.project-specs li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  color: var(--sand);
}
.project-info .btn-primary { align-self: flex-start; }
.projects-note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ---------- Acompanhamento / Corretores (media + content) ---------- */
.acompanhamento-grid,
.corretores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.acompanhamento-media img,
.corretores-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.section-acompanhamento { background: var(--white); }
.acompanhamento-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }

.section-corretores { background: var(--gray-100); }
.corretores-grid .corretores-media { order: 2; }
.corretores-list { margin: 20px 0 28px; display: grid; gap: 10px; }
.corretores-list li {
  position: relative;
  padding-left: 26px;
  color: var(--gray-700);
  font-size: 0.96rem;
}
.corretores-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Localização ---------- */
.map-wrapper {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 8;
  background: var(--gray-200);
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }
.map-route-btn { margin-top: 24px; }

/* ---------- Contato ---------- */
.section-contato { background: var(--navy-deep); }
.section-contato .section-eyebrow { color: var(--gold-light); }
.section-contato h2 { color: var(--white); }
.contato-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contato-list { display: grid; gap: 20px; margin-top: 28px; }
.contato-list li { display: flex; flex-direction: column; gap: 4px; }
.contato-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light);
}
.contato-list span:not(.contato-label) { color: var(--sand); }
.contato-list a { color: var(--sand); border-bottom: 1px solid rgba(255,255,255,0.3); }
.contato-list a:hover { color: var(--gold-light); border-color: var(--gold-light); }

.contato-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-deep);
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  color: var(--gray-900);
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-field.has-error input,
.form-field.has-error textarea { border-color: #c0392b; }
.field-error {
  font-size: 0.78rem;
  color: #c0392b;
  min-height: 16px;
}
.form-submit { width: 100%; margin-top: 6px; }
.form-feedback {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  min-height: 20px;
}
.form-feedback.success { color: #1e7a46; }
.form-feedback.error { color: #c0392b; }

/* ============================================================
   WhatsApp float
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 600;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: var(--sand); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-brand .brand-icon { width: 34px; height: 34px; flex-shrink: 0; }
.footer-brand .brand-text { display: flex; flex-direction: column; }
.footer-brand p { color: rgba(244,239,230,0.7); font-size: 0.85rem; margin: 4px 0 0; width: 100%; }
.footer-brand .brand-mark { color: var(--gold-light); font-size: 1.4rem; }
.footer-brand .brand-sub { display: block; margin-top: 2px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col li { color: rgba(244,239,230,0.78); font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold-light); }

.footer-legal { padding: 28px 0 32px; }
.footer-legal p {
  font-size: 0.76rem;
  color: rgba(244,239,230,0.55);
  margin: 0 0 8px;
  max-width: 900px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .sobre-grid,
  .acompanhamento-grid,
  .corretores-grid,
  .contato-grid { grid-template-columns: 1fr; }
  .corretores-grid .corretores-media { order: -1; }
  .project-card { grid-template-columns: 1fr; }
  .project-media { min-height: 260px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1150px) {
  .nav-desktop, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile-panel { display: block; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { min-height: 560px; }
  .hero-content { padding-top: 64px; padding-bottom: 64px; }
  .project-info { padding: 32px 24px; }
  .contato-form { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
