:root {
  --brand-dark: #000000;
  --brand-mid: #010101;
  --brand-accent: #FFD700;
  --muted: #6b7280;
  --bg: #f9f9f9;
  --card: #ffffff;
  --radius: 12px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--bg);
  background-image: url('../img/logo icadi.svg');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 100%;
  background-attachment: fixed;
  color: #071123;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { 
  text-decoration: none; 
  color: inherit; 
  transition: color 0.3s ease;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(6, 18, 38, 0.05);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  gap: 12px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  flex-shrink: 0;
}

.logo-container {
  position: relative;
  height: 40px;
  width: 140px;
}

.logo-container img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100% !important;
  width: auto !important;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: left top;
}

.logo-default {
  opacity: 1;
  transform: scale(1);
}

.logo-hover {
  opacity: 0;
  transform: scale(1);
}

.brand:hover .logo-default {
  opacity: 0;
}

.brand:hover .logo-hover {
  opacity: 1;
  transform: scale(3);
  background: white;
  padding: 2px;
  border-radius: 3px;
}

.brand .title {
  display: none !important;
}

nav ul { display: none; }

.cta {
  display: inline-block;
  background: #000000;
  color: #ffffff !important;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 8px;
}

.cta:hover {
  background: var(--brand-accent) !important;
  color: #000000 !important;
}

.hamb {
  display: inline-block;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  color: var(--brand-dark);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.mobile-menu {
  position: fixed;
  right: 18px;
  top: 64px;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(6, 18, 38, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
  z-index: 1000;
}

.mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--brand-dark);
}

.mobile-menu a:hover {
  color: var(--brand-accent) !important;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 18px;
}

main { padding: 16px 0; background: transparent; }
section { padding: 32px 0; border-bottom: 1px solid rgba(6, 18, 38, 0.01); background: transparent; }

.section-title {
  font-family: "Poppins", sans-serif;
  color: var(--brand-dark);
  margin: -40px 0 0 20px;
  font-size: 1.4rem;
}
.muted { color: var(--muted); }

.hero {
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(251,253,255,0.95));
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(6, 18, 38, 0.04);
}

.hero h1 {
  font-family: "Poppins", sans-serif;
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.4rem, 6vw, 2rem);
  line-height: 1.15;
}

.hero p.lead { color: var(--muted); margin: 12px 0 20px; font-size: 1rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  flex: 1;
  min-width: 140px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  background: linear-gradient(to bottom, var(--brand-mid), var(--brand-dark));
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--brand-accent) !important;
  color: #000000 !important;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(40, 70, 120, 0.15);
  color: var(--brand-dark);
}

.btn-secondary:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.swiper-hero {
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  box-shadow: 0 10px 30px rgba(6, 18, 38, 0.05);
  width: 100%;
  position: relative;
}

.myHeroSwiper { height: 100%; width: 100%; }

.swiper-hero img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center;
  display: block; 
}

.swiper-button-next, .swiper-button-prev {
  top: 50% !important;
  transform: translateY(-50%);
  margin-top: 0 !important;
}

.about { display: flex; flex-direction: column; gap: 20px; }
.bio { background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(251,253,255,0.9)); border-radius: var(--radius); padding: 20px; }
.people { display: flex; gap: 16px; margin-top: 20px; justify-content: center; flex-wrap: wrap; }
.people img {
  width: 125px;
  height: 125px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(6, 18, 38, 0.05);
  cursor: pointer;
  transition: transform 0.2s;
}
.people img:hover { transform: scale(1.05); }

.people img:only-child {
  width: 280px;
  height: 280px;
  border-radius: 16px;
  margin: 0 auto;
}

.grid { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }

.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(6, 18, 38, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.card img { width: 100%; height: 200px; object-fit: cover; }
.card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0; color: var(--brand-dark); font-size: 1.1rem; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; }

.card-link:hover .card {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(6, 18, 38, 0.08);
}

.card-link:hover h3 {
  color: var(--brand-accent);
}

.chamada-final {
  position: relative;
  padding: 60px 30px;
  border-radius: var(--radius);
  overflow: hidden; 
  margin: 32px 0;
  background-color: #162B74;
}

.chamada-final::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../img/vista03.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.chamada-final::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(7, 17, 35, 0.88), rgba(30, 60, 114, 0.40)); 
  z-index: 2;
}

.chamada-final:hover::before {
  transform: scale(1.08);
}

.chamada-content {
  position: relative;
  z-index: 3; 
  max-width: 700px;
}

.chamada-content h3 { 
  font-family: "Poppins", sans-serif; 
  font-size: 1.6rem; 
  margin: 0 0 10px; 
  color: #ffffff !important;
}

.chamada-content p { 
  color: rgba(255, 255, 255, 0.95) !important; 
  font-size: 1.05rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

form {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(6, 18, 38, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
input, textarea, select {
  border: 1px solid #e6edf6;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
}

footer {
  background: linear-gradient(180deg, var(--brand-dark), var(--brand-mid));
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

footer p, 
footer p.main {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

footer p strong {
  color: #ffffff;
  font-size: 1.05rem;
}

footer .footer-right .cta {
  background: transparent !important;
  padding: 0;
  border-radius: 0;
  color: #ffffff !important;
  text-decoration: underline;
  font-weight: normal;
}

footer .footer-right .cta:hover {
  color: var(--brand-accent) !important;
}

footer a:hover {
  color: var(--brand-accent);
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.modal-lightbox {
  position: fixed;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-lightbox img { max-width: 90%; max-height: 80%; object-fit: contain; border-radius: 6px; }
.modal-close { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 2rem; cursor: pointer; }

@media (min-width: 768px) {
  nav ul { display: flex; list-style: none; gap: 12px; margin: 0; padding: 0; align-items: center; }
  nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--brand-dark); }
  nav a:hover { 
    background: rgba(40, 70, 120, 0.06); 
    color: var(--brand-accent);
  }
  .hamb { display: none; }
  
  .logo-container {
    width: 160px;
  }
  
  .brand:hover .logo-hover {
    transform: scale(3.5);
  }
  
  .cta { 
    padding: 8px 16px; 
    font-size: 1rem;
    margin-left: 0;
    margin-right: 0;
  }
  
  .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  
  .hero { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: center; }
  .swiper-hero { height: 340px; }
  .btn { flex: unset; }

  .about { display: block; }
  .people img { width: 140px; height: 140px; }
  
  .chamada-final { padding: 80px 40px; }
  .chamada-content h3 { font-size: 1.8rem; }
  
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
  }
  footer { text-align: left; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; }
  .footer-right { text-align: right; align-items: flex-end; }
}

@media (min-width: 1024px) {
  section { padding: 48px 0; }
  .hero { grid-template-columns: 1fr 480px; gap: 32px; min-height: 380px; }
  .swiper-hero { height: 400px; }
  
  .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .people img { width: 260px; height: 260px; }
  .people img:only-child { width: 380px; height: 380px; }
}

.imovel-vertical-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(6, 18, 38, 0.04);
  margin-bottom: 48px;
  padding: 24px;
}

.imovel-slider-container {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.myImovelSwiper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  cursor: pointer;
}

.imovel-details h2 {
  font-family: "Poppins", sans-serif;
  color: var(--brand-dark);
  font-size: 1.4rem;
  margin: 0 0 12px 0;
}

.imovel-features {
  margin: 14px 0;
  font-weight: 600;
  color: var(--brand-mid);
}

.myImovelSwiper {
  width: 100%;
  height: 100%;
  position: relative;
}

.myImovelSwiper .swiper-wrapper {
  height: 100%;
}

.myImovelSwiper .swiper-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.myImovelSwiper .swiper-button-next,
.myImovelSwiper .swiper-button-prev {
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
  z-index: 10;
}

.myImovelSwiper .swiper-pagination {
  bottom: 10px !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 10;
}

@media (min-width: 768px) {
  .imovel-vertical-block {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 32px;
    align-items: start;
  }
  .imovel-slider-container {
    height: 360px;
  }
}