/* =======================================================
   TEMA FINAL - ALINHADO COM O MANUAL DE IDENTIDADE VISUAL
   ======================================================= */

:root {
  /* Paleta de Cores Oficial */
  --escrita-blue-dark: #003366;      /* Azul Principal */
  --escrita-blue-darker: #00264d;    /* Azul mais escuro para hover */
  --escrita-gold: #C99F36;           /* Dourado Metálico */
  --escrita-gray-dark: #333333;      /* Cinza Escuro */
  --escrita-white: #FFFFFF;          /* Branco */
  
  /* Variáveis do Tema com base no manual */
  --bg: var(--escrita-white);
  --bg-soft: #f8f9fa;
  --text: var(--escrita-blue-dark);
  --muted: var(--escrita-gray-dark); /* Usando o cinza oficial para textos de apoio */
  --primary: var(--escrita-blue-dark);
  --primary-700: var(--escrita-blue-darker);
  --brand: var(--escrita-gold);
  --card: var(--escrita-white);
  --border: #dde3ea;
}

*{box-sizing:border-box}

html {
  scroll-behavior: smooth;
}

body {
  margin:0;
  font-family: 'Poppins', sans-serif; /* FONTE PADRÃO: Poppins */
  font-weight: 400;
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
}
img{max-width:100%;display:block}

/* Tipografia com base no manual */
h1, h2, h3, h4, h5, h6, .brand, .btn, .tsl__meta {
  font-family: 'Montserrat', sans-serif; /* FONTE DE TÍTULOS E DESTAQUES: Montserrat */
  font-weight: 700; /* Bold (Negrito) */
}

.container{
  width:min(1120px, 92%);
  margin-inline:auto;
}

/* ========== Header / Navegação ========== */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header.is-scrolled{ box-shadow:0 6px 16px rgba(15,23,42,.08) }
.header__wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand__logo{ height:44px; width:auto; }
@media (max-width:720px){ .brand__logo{ height:36px; } }

.nav{display:flex}
.nav__list{display:flex; gap:26px; list-style:none; margin:0; padding:0; align-items:center}
.nav__list li{list-style:none; position:relative}
.nav__list a{
  color:var(--text); text-decoration:none;
  position:relative; padding:6px 0;
  transition: color .2s ease, transform .2s ease;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.nav__list a::after{
  content:""; position:absolute; left:0; bottom:-6px;
  width:0; height:2px; background:var(--brand);
  transition: width .25s ease;
}
.nav__list a:hover{color:var(--text); transform:translateY(-1px)}
.nav__list a:hover::after{width:100%}

/* ========== Botões ========== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease-out;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--escrita-white);
}

.btn--primary:hover {
  background-color: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 45, 91, 0.2);
}

.btn--ghost{
  border:1px solid var(--border);
  padding:12px 20px;
  line-height:1.2;
  color:var(--text);
  background-color: transparent;
  box-shadow: none;
}
.btn--ghost:hover {
  background-color: var(--bg-soft);
  border-color: #cdd5df;
}

.nav__toggle{
  display:none; width:42px; height:34px; background:none; border:0; cursor:pointer;
}
.nav__toggle span{display:block; height:2px; background:#0b1220; margin:7px 0; transition:.3s; border-radius:2px}
.nav__toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(9px) rotate(45deg)}
.nav__toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav__toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}

/* ========== Hero (banner) ========== */
.hero{position:relative; min-height:78svh; display:grid; place-items:center; text-align:center; overflow:hidden;}
.hero__bg{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.70)),
    url("../img/fundo.jpeg") center/cover no-repeat;
  z-index:-1;
}
.hero__content{padding:84px 0; position:relative; z-index:2;}

/* ========== Seções ========== */
.section{padding:72px 0; background:var(--bg)}
.section--light{background:var(--bg-soft)}
.section__title{font-size:clamp(1.8rem,3vw,2.4rem); margin:0 0 32px}

/* ========== Cards (Serviços) ========== */
.grid{display:grid; gap:24px}
.grid--cards{grid-template-columns:repeat(3,1fr)}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
  box-shadow:0 4px 14px rgba(21, 57, 95, 0.07);
}
.card h3{margin:12px 0 8px; font-size: 1.25rem;}
.card p{margin:0; color:var(--muted)}
.icon{width:40px; height:40px; color:var(--brand);}

.card p, .tile p {
  text-align: justify;
}

/* ========== Sobre Nós ========== */
.about__grid{display:grid; grid-template-columns:1.1fr .9fr; gap:36px; align-items:center}
.about__text p{color:var(--muted)}
.checks{list-style:none; padding:0; margin:14px 0 0}
.checks li{margin:8px 0; position:relative; padding-left:26px}
.checks li::before{
  content:"✔"; color:var(--brand); position:absolute; left:0; top:0;
}
.about__image img{border-radius:14px; border:1px solid var(--border)}

/* ========== Diferenciais (tiles) ========== */
.grid--tiles{grid-template-columns:repeat(3,1fr)}
.tile{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:24px;
  box-shadow:0 4px 14px rgba(21, 57, 95, 0.07);
}
.tile h3{margin:12px 0 8px; font-size: 1.25rem;}
.tile p{margin:0; color:var(--muted)}

.center{text-align:center}

/* ========== Footer ========== */
.footer--pro {
  background: var(--escrita-blue-dark);
  color: #e9eef6;
}
.footer--pro p, .footer--pro a {
  font-family: 'Poppins', sans-serif;
}
.footer--pro h4 {
  font-family: 'Montserrat', sans-serif;
}
.footer--pro a {
  color: #cfe4d6;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer--pro a:hover { color: var(--escrita-white); }
.footer--pro .footer__stripe {
  height: 6px;
  background: var(--brand);
}
.progrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 28px;
  padding: 32px 0 24px;
  align-items: start;
}
.prologo { max-height: 54px; width: auto; display: block; margin-bottom: 8px; }
.proline { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.proline svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex: 0 0 auto;
}
/* ===================================== */
/* Botão CTA (Call-to-Action) do Rodapé  */
/* ESTILO FINAL: Branco com fonte Azul   */
/* ===================================== */
.btn-cta {
  display: inline-block;
  padding: 12px 24px;              /* Mesmo padding dos outros botões */
  border-radius: 10px;             /* Mesmo arredondamento dos outros botões */
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 18px;
  
  background-color: var(--escrita-white);       /* FUNDO BRANCO */
  color: var(--escrita-blue-dark) !important;   /* TEXTO AZUL (com !important para garantir) */
  border: 2px solid transparent;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
  background-color: var(--escrita-white);
  color: var(--escrita-blue-dark) !important;   /* Garante a cor do texto no hover */
  border: 2px solid var(--brand);             /* BORDA DOURADA APARECE NO HOVER */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.footer--pro .footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 16px;
  font-size: 0.9rem;
}

@media (min-width: 1025px) {
  .progrid > .procol + .procol {
    position: relative;
  }
  .progrid > .procol + .procol::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
  }
}

/* ========== Depoimentos ========== */
.tslite{ background:var(--bg-soft); }
.tsl{ position:relative; max-width:900px; margin:0 auto; padding:10px 44px; }
.tsl__item{
  position:absolute; inset:0; opacity:0; transform:translateY(6px) scale(.98);
  transition:opacity .45s ease, transform .45s ease;
  background:#fff; border:1px solid var(--border); border-radius:14px;
  padding:22px; box-shadow:0 8px 26px rgba(15,23,42,.06);
  display:grid; place-items:center; text-align:center;
}
.tsl__item.is-active{ opacity:1; transform:none; position:relative; }
.tsl__avatar{
  width:72px; height:72px; border-radius:50%; object-fit:cover;
  border:3px solid #fff; box-shadow:0 2px 12px rgba(0,0,0,.08);
  margin-bottom:12px;
}
.tsl__quote{ margin:0 0 12px; line-height:1.7; max-width:70ch; }
.tsl__sub{ font-weight:400; font-size:.95rem; margin-top:4px; color: var(--muted);}
.tsl__nav{
  position:absolute; top:50%; translate:0 -50%;
  width:38px; height:38px; border-radius:10px;
  border:1px solid var(--border); background:#fff; cursor:pointer;
  display:grid; place-items:center; font-size:24px;
  box-shadow:0 4px 12px rgba(15,23,42,.06);
}
.tsl__nav:hover{ background:var(--bg-soft); }
.tsl__nav.prev{ left:0; }
.tsl__nav.next{ right:0; }
.tsl__dots{ display:flex; justify-content:center; gap:8px; margin-top:12px; }
.tsl__dots button{
  width:8px; height:8px; border-radius:999px; border:0; background:#cfd6e3; cursor:pointer;
}
.tsl__dots button[aria-current="true"]{ background:var(--brand); width:18px; }
.tsl__nav{ z-index: 5; }
.tsl__item{ z-index: 1; }

/* ========== Banner e Animações ========== */
@keyframes fadeInSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__logo {
  max-height: 150px;
  width: auto;
  margin-inline: auto; 
  margin-bottom: 0;
  animation: fadeInSlideUp 0.8s ease-out 0.2s backwards;
}

.hero__subtitle {
  margin: 12px 0 24px;
  color: #e6eefc;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.4;
  animation: fadeInSlideUp 0.8s ease-out 0.4s backwards;
  font-family: 'Poppins', sans-serif;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInSlideUp 0.8s ease-out 0.6s backwards;
}

.card, .tile {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.card.is-visible, .tile.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grid--cards .card:nth-child(2) { transition-delay: 0.1s; }
.grid--cards .card:nth-child(3) { transition-delay: 0.2s; }
.grid--cards .card:nth-child(4) { transition-delay: 0.05s; }
.grid--cards .card:nth-child(5) { transition-delay: 0.15s; }
.grid--cards .card:nth-child(6) { transition-delay: 0.25s; }

/* ========== Responsividade ========== */
@media (max-width: 1024px){
  .grid--cards, .grid--tiles{grid-template-columns:repeat(2,1fr)}
  .about__grid, .progrid {grid-template-columns:1fr 1fr}
}
@media (max-width: 720px){
  .header{ --h:58px; }
  .header__wrap{ padding:10px 0; }
  .nav{
    position: fixed; inset: var(--h) 0 0;
    background: #fff;
    z-index: 9999;
    transform: translateY(-120%);
    transition: transform .3s, opacity .2s;
    padding:18px 0; border-top:1px solid var(--border);
    opacity:0; 
    pointer-events:none;
  }
  .nav.open{
    transform: translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  body.menu-open{ overflow: hidden; }
  .nav__toggle{display:block}
  .nav__list{
    flex-direction:column; gap:18px; align-items:flex-start;
    width:min(92%, 500px); margin-inline:auto;
  }
  .hero{ min-height:calc(100svh - var(--h)); }
  .hero__content{ padding:48px 0; }
  .grid--cards, .grid--tiles, .about__grid, .progrid { grid-template-columns:1fr; }
  .progrid { gap: 16px; }
  .prologo { max-height: 46px; }
  .btn-cta { width: 100%; }
  .tsl{ padding:6px 0; }
  .tsl__nav{ display:none; }
  .tsl__item{ padding:18px; }
  .tsl__quote{ text-align:left; }
}

@keyframes menuFade{to{opacity:1; transform:none}}
.nav.open .nav__list li{opacity:0; transform:translateY(-6px); animation:menuFade .35s forwards}
.nav.open .nav__list li:nth-child(1){animation-delay:.05s}
.nav.open .nav__list li:nth-child(2){animation-delay:.10s}
.nav.open .nav__list li:nth-child(3){animation-delay:.15s}
.nav.open .nav__list li:nth-child(4){animation-delay:.20s}
.nav.open .nav__list li:nth-child(5){animation-delay:.25s}
.nav.open .nav__list li:nth-child(6){animation-delay:.30s}

/* ===================================== */
/* Divisória para a Seção "Área do Condomínio" */
/* ===================================== */
#area-cliente {
  border-top: 3px solid var(--brand); /* Usando a cor dourada (--brand) */
}


/* =======================================================
   ESTILOS PARA O BANNER POP-UP DE ATUALIZAÇÃO
   ======================================================= */

.update-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo semi-transparente escuro */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Garante que fique acima de todo o conteúdo */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.update-banner-overlay.show {
    opacity: 1;
    visibility: visible;
}

.update-banner-content {
    background-color: var(--escrita-white); /* Fundo branco do pop-up */
    color: var(--escrita-blue-dark); /* Texto em azul escuro */
    padding: 30px 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--escrita-gold); /* Borda superior dourada */
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.update-banner-overlay.show .update-banner-content {
    transform: translateY(0);
    opacity: 1;
}

.update-banner-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--escrita-gray-dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.update-banner-close:hover {
    color: var(--escrita-blue-dark);
}

.update-banner-logo-area {
    margin-bottom: 20px;
}

.update-banner-logo {
    max-width: 180px; /* Ajuste o tamanho do logo se necessário */
    height: auto;
    margin: 0 auto;
}

.update-banner-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    color: var(--escrita-blue-dark);
    margin-top: 0;
    margin-bottom: 10px;
}

.update-banner-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.update-banner-text strong {
    font-weight: 600;
    color: var(--escrita-gold);
}

.update-banner-new-url {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3em;
    color: var(--escrita-gold);
    margin-bottom: 5px;
}

.update-banner-new-url a {
    color: var(--escrita-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.update-banner-new-url a:hover {
    color: var(--escrita-blue-dark);
}

.update-banner-old-url {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    color: var(--escrita-gray-dark);
    margin-bottom: 20px;
}

.update-banner-btn {
    background-color: var(--escrita-blue-dark);
    color: var(--escrita-white);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.update-banner-btn:hover {
    background-color: var(--escrita-gold);
    color: var(--escrita-blue-dark);
    transform: translateY(-2px);
}

/* Responsividade básica para o pop-up */
@media (max-width: 600px) {
    .update-banner-content {
        padding: 25px 25px;
        width: 95%;
    }
    .update-banner-title {
        font-size: 1.5em;
    }
    .update-banner-logo {
        max-width: 150px;
    }
}