/* Template demo: residencial luxo — isolado do restante do site */
.tpl-premium {
  --tpl-ink: #0a0a0b;
  --tpl-charcoal: #141418;
  --tpl-graphite: #1e1e24;
  --tpl-muted: #8a8a94;
  --tpl-fog: #e8e6e1;
  --tpl-cream: #f5f4f0;
  --tpl-white: #fafaf9;
  --tpl-gold: #a8986b;
  --tpl-gold-soft: rgba(168, 152, 107, 0.22);
  --tpl-blue: #0c1f3a;
  --tpl-blue-deep: #071426;
  --tpl-accent: #1a3a5c;
  --tpl-font-display: "Cormorant Garamond", Georgia, serif;
  --tpl-font-body: "DM Sans", system-ui, sans-serif;
  --tpl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  margin: 0;
  background: var(--tpl-ink);
  color: var(--tpl-fog);
  font-family: var(--tpl-font-body);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.tpl-premium * {
  box-sizing: border-box;
}

.tpl-premium img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tpl-premium a {
  color: inherit;
  text-decoration: none;
}

.tpl-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.tpl-container {
  width: min(112rem, 100% - 3rem);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .tpl-container {
    width: min(112rem, 100% - 5rem);
  }
}

/* ——— Nav ——— */
.tpl-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.25rem 0;
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.92), rgba(10, 10, 11, 0.65), transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tpl-nav__inner {
  width: min(112rem, 100% - 2rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tpl-nav__inner {
    width: min(112rem, 100% - 5rem);
  }
}

.tpl-logo {
  font-family: var(--tpl-font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tpl-white);
}

.tpl-logo span {
  color: var(--tpl-gold);
  font-weight: 600;
}

.tpl-nav__links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 900px) {
  .tpl-nav__links {
    display: flex;
  }
}

.tpl-nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tpl-muted);
  transition: color 0.35s var(--tpl-ease);
}

.tpl-nav__links a:hover {
  color: var(--tpl-white);
}

.tpl-nav__cta {
  display: none;
}

@media (min-width: 900px) {
  .tpl-nav__cta {
    display: inline-flex;
  }
}

.tpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  font-family: var(--tpl-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.4s var(--tpl-ease), color 0.4s var(--tpl-ease), border-color 0.4s var(--tpl-ease), transform 0.35s var(--tpl-ease);
}

.tpl-btn--primary {
  background: var(--tpl-gold);
  color: var(--tpl-ink);
  border-color: var(--tpl-gold);
}

.tpl-btn--primary:hover {
  background: #c4b07e;
  border-color: #c4b07e;
  transform: translateY(-1px);
}

.tpl-btn--ghost {
  background: transparent;
  color: var(--tpl-white);
  border-color: rgba(255, 255, 255, 0.28);
}

.tpl-btn--ghost:hover {
  border-color: var(--tpl-gold);
  color: var(--tpl-gold);
}

.tpl-nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tpl-white);
}

@media (min-width: 900px) {
  .tpl-nav__toggle {
    display: none;
  }
}

.tpl-nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--tpl-ease);
}

.tpl-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--tpl-charcoal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tpl-nav-open .tpl-nav-mobile {
  display: flex;
}

@media (min-width: 900px) {
  .tpl-nav-mobile {
    display: none !important;
  }
}

.tpl-nav-mobile a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tpl-muted);
  padding: 0.35rem 0;
}

.tpl-nav-open .tpl-nav__toggle span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.tpl-nav-open .tpl-nav__toggle span:nth-child(2) {
  opacity: 0;
}

.tpl-nav-open .tpl-nav__toggle span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ——— Hero ——— */
.tpl-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 8rem 0 4rem;
}

.tpl-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tpl-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) contrast(1.05);
}

.tpl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(7, 20, 38, 0.92) 0%,
    rgba(7, 20, 38, 0.55) 42%,
    rgba(10, 10, 11, 0.35) 100%
  );
  z-index: 1;
}

.tpl-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)'/%3E%3C/svg%3E");
}

.tpl-hero__content {
  position: relative;
  z-index: 3;
  width: min(112rem, 100% - 2rem);
  margin-inline: auto;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .tpl-hero__content {
    width: min(112rem, 100% - 5rem);
  }
}

.tpl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tpl-gold);
  margin-bottom: 1.5rem;
}

.tpl-eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--tpl-gold);
  opacity: 0.7;
}

.tpl-hero h1 {
  font-family: var(--tpl-font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--tpl-white);
  max-width: 16ch;
  margin: 0 0 1.25rem;
}

.tpl-hero__lead {
  font-size: clamp(1rem, 1vw + 0.9rem, 1.2rem);
  font-weight: 300;
  color: rgba(232, 230, 225, 0.82);
  max-width: 36rem;
  margin: 0 0 2.5rem;
}

.tpl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tpl-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tpl-hero__meta dt {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tpl-muted);
  margin-bottom: 0.35rem;
}

.tpl-hero__meta dd {
  margin: 0;
  font-family: var(--tpl-font-display);
  font-size: 1.35rem;
  color: var(--tpl-white);
}

/* ——— Sections ——— */
.tpl-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.tpl-section--cream {
  background: var(--tpl-cream);
  color: var(--tpl-charcoal);
}

.tpl-section--blue {
  background: linear-gradient(165deg, var(--tpl-blue-deep) 0%, var(--tpl-blue) 50%, #122a45 100%);
  color: var(--tpl-fog);
}

.tpl-section--dark {
  background: var(--tpl-charcoal);
}

.tpl-section__head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.tpl-section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tpl-section__head .tpl-eyebrow {
  color: var(--tpl-accent);
}

.tpl-section--dark .tpl-section__head .tpl-eyebrow,
.tpl-section--blue .tpl-section__head .tpl-eyebrow {
  color: var(--tpl-gold);
}

.tpl-section--cream .tpl-section__head .tpl-eyebrow::before {
  background: var(--tpl-accent);
}

.tpl-section h2 {
  font-family: var(--tpl-font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.tpl-section--cream h2 {
  color: var(--tpl-ink);
}

.tpl-section--dark h2,
.tpl-section--blue h2 {
  color: var(--tpl-white);
}

.tpl-section__intro {
  margin: 0;
  font-weight: 300;
  color: var(--tpl-muted);
  font-size: 1.05rem;
}

.tpl-section--cream .tpl-section__intro {
  color: #5c5c66;
}

.tpl-section--dark .tpl-section__intro,
.tpl-section--blue .tpl-section__intro {
  color: rgba(232, 230, 225, 0.65);
}

/* ——— Pillars ——— */
.tpl-pillars {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .tpl-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tpl-pillars {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.tpl-pillar {
  padding: 2rem 1.75rem;
  background: var(--tpl-white);
  border: 1px solid rgba(20, 20, 24, 0.08);
  transition: border-color 0.4s var(--tpl-ease), box-shadow 0.4s var(--tpl-ease);
}

.tpl-pillar:hover {
  border-color: var(--tpl-gold-soft);
  box-shadow: 0 24px 48px rgba(12, 31, 58, 0.06);
}

.tpl-pillar__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tpl-gold);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--tpl-gold-soft);
}

.tpl-pillar h3 {
  font-family: var(--tpl-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tpl-ink);
  margin: 0 0 0.65rem;
}

.tpl-pillar p {
  margin: 0;
  font-size: 0.9375rem;
  color: #5c5c66;
  line-height: 1.6;
}

/* ——— Split + gallery ——— */
.tpl-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .tpl-split {
    grid-template-columns: 1fr 1.05fr;
    gap: 4rem;
  }
}

.tpl-split__text .tpl-eyebrow {
  margin-bottom: 1rem;
}

.tpl-split__text h2 {
  margin-bottom: 1.25rem;
}

.tpl-split__text p {
  margin: 0 0 1.25rem;
  color: rgba(232, 230, 225, 0.75);
  font-weight: 300;
}

.tpl-section--cream .tpl-split__text p {
  color: #5c5c66;
}

.tpl-split__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.tpl-split__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9375rem;
  color: rgba(232, 230, 225, 0.85);
}

.tpl-section--cream .tpl-split__list li {
  border-color: rgba(20, 20, 24, 0.08);
  color: var(--tpl-graphite);
}

.tpl-split__list i {
  color: var(--tpl-gold);
  margin-top: 0.2rem;
  font-size: 0.75rem;
}

.tpl-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.65rem;
}

.tpl-mosaic__cell {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.tpl-mosaic__cell--tall {
  grid-row: span 2;
}

.tpl-mosaic__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
  transition: transform 0.8s var(--tpl-ease);
}

@media (min-width: 640px) {
  .tpl-mosaic__cell img {
    min-height: 180px;
  }
}

.tpl-mosaic__cell--tall img {
  min-height: 280px;
}

@media (min-width: 640px) {
  .tpl-mosaic__cell--tall img {
    min-height: 380px;
  }
}

.tpl-mosaic__cell:hover img {
  transform: scale(1.04);
}

.tpl-mosaic__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(10, 10, 11, 0.85));
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

/* ——— Trust ——— */
.tpl-trust {
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .tpl-trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.tpl-trust__item strong {
  display: block;
  font-family: var(--tpl-font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--tpl-white);
  margin-bottom: 0.35rem;
}

.tpl-trust__item span {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--tpl-muted);
}

/* ——— CTA band ——— */
.tpl-cta-band {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5rem) 1.5rem;
  border: 1px solid rgba(168, 152, 107, 0.35);
  background: linear-gradient(135deg, rgba(168, 152, 107, 0.08) 0%, transparent 50%),
    var(--tpl-graphite);
}

.tpl-cta-band h2 {
  font-family: var(--tpl-font-display);
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  color: var(--tpl-white);
  margin: 0 0 0.75rem;
}

.tpl-cta-band p {
  margin: 0 auto 2rem;
  max-width: 32rem;
  color: var(--tpl-muted);
  font-weight: 300;
}

.tpl-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ——— Footer ——— */
.tpl-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--tpl-ink);
}

.tpl-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .tpl-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

.tpl-footer__brand {
  font-family: var(--tpl-font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tpl-white);
  margin-bottom: 0.75rem;
}

.tpl-footer__brand span {
  color: var(--tpl-gold);
}

.tpl-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--tpl-muted);
  max-width: 28rem;
  line-height: 1.6;
}

.tpl-footer h4 {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tpl-white);
  margin: 0 0 1rem;
}

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

.tpl-footer li {
  margin-bottom: 0.5rem;
}

.tpl-footer a {
  font-size: 0.875rem;
  color: var(--tpl-muted);
  transition: color 0.3s var(--tpl-ease);
}

.tpl-footer a:hover {
  color: var(--tpl-gold);
}

.tpl-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--tpl-muted);
}

.tpl-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tpl-muted);
  transition: color 0.3s var(--tpl-ease);
}

.tpl-back:hover {
  color: var(--tpl-gold);
}

/* ——— Demo ribbon (plataforma) ——— */
.tpl-demo-note {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(7, 20, 38, 0.95);
  color: rgba(232, 230, 225, 0.75);
  border-top: 1px solid rgba(168, 152, 107, 0.25);
}

.tpl-demo-note a {
  color: var(--tpl-gold);
  margin-left: 0.35rem;
}

.tpl-shell {
  padding-bottom: 2.5rem;
}
