/* ============================================================
   🏢 SITE CORPORATIVO - ASSESSORIA MATTOS
   Tema: Navy + Gold + Cream (Identidade Visual 2025)
   Depende de: public/css/brand.css (tokens + fontes)
   ============================================================ */

/* ==========================
   RESET / BASE
   ========================== */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body{
  font-family: var(--font-sans);
  background-color: var(--navy-3);
  color: var(--text-on-dark);

  scroll-behavior: smooth;
  line-height: 1.7;
  font-size: 16px;
}

/* Container (site público) */
.container{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Títulos */
h1,h2,h3{
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Links (base) */
a{
  color: var(--brand-cream);
}
a:hover{
  color: var(--brand-gold);
}

/* ==========================
   NAVBAR
   ========================== */
.navbar{
  border-bottom: 1px solid var(--border-gold);
}

/* Mantém compatível com Bootstrap (navbar-dark) */
.navbar-dark .navbar-nav .nav-link{
  color: var(--text-on-dark);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.navbar-dark .navbar-nav .nav-link:hover{
  color: var(--brand-gold);
}
.navbar-dark .navbar-nav .nav-link.active{
  color: var(--brand-gold);
  border-bottom: 2px solid var(--brand-gold);
}

/* Navbar do site (sem inline) */
.site-navbar{
  background-color: rgba(22, 34, 56, 0.98); /* --navy-3 premium */
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(6px);
}

/* Se ainda usar texto como marca */
.site-navbar .logo-secreta{
  color: var(--brand-gold) !important;
}

/* Logo imagem da navbar */
.site-navbar .brand-logo{
  height: 32px; /* ajuste fino aqui */
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35));
  opacity: .95;
}

/* ==========================
   HERO DA HOME (header#inicio)
   ========================== */
header#inicio{
  color: var(--text-on-dark);
  padding: 120px 0;
}

/* Conteúdo do hero */
header#inicio .hero-content{
  max-width: 600px;
}

header#inicio h1{
  font-size: 3rem;
  color: var(--brand-gold);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

header#inicio h1 span{
  color: var(--brand-cream);
}

header#inicio p{
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 30px;
}

header#inicio .btn-group{
  display: flex;
  gap: 15px;
}

/* Box lateral do hero */
.hero-box{
  background: rgba(34, 50, 76, 0.55);
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  color: var(--text-on-dark);
  backdrop-filter: blur(4px);
}

.hero-box-title{
  color: var(--brand-gold);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-box-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ==========================
   HERO HOME (pattern premium)
   ========================== */
.hero-home{
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(22,34,56,.92), rgba(34,50,76,.88));
}

/* Pattern como textura */
.hero-home::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: var(--hero-pattern);
  background-repeat: repeat;
  background-size: 1800px 1800px;
  background-position: center;

  opacity: .07;
  filter: blur(0.6px);
  transform: scale(1.02);

  pointer-events: none;
}

/* Vinheta/iluminação */
.hero-home::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background:
    radial-gradient(circle at 20% 10%, rgba(201,161,99,.10), transparent 55%),
    radial-gradient(circle at 70% 20%, rgba(242,227,186,.06), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.32));

  pointer-events: none;
}

/* Conteúdo acima das camadas */
.hero-home > .container{
  position: relative;
  z-index: 1;
}

.hero-content--home{
  flex: 1;
  min-width: 300px;
}

/* ==========================
   BOTÕES (site)
   ========================== */
.btn{
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 700;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary{
  background-color: var(--brand-gold);
  color: var(--navy-3);
  border: none;
}

.btn-primary:hover{
  background-color: rgba(201, 161, 99, 0.92);
  color: var(--navy-3);
}

.btn-outline{
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold);
  background: transparent;
}

.btn-outline:hover{
  background-color: var(--brand-gold);
  color: var(--navy-3);
}

/* ==========================
   SEÇÃO "SOBRE" (HOME)
   ========================== */
section#sobre{
  background-color: var(--brand-navy);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 90px 0;
}

#sobre .container{
  gap: 40px;
}

#sobre .text{
  flex: 1 1 320px;
  min-width: 300px;
  max-width: 620px;
}

#sobre h2{
  font-size: 2rem;
  color: var(--brand-gold);
  margin-bottom: 25px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

#sobre p{
  color: var(--text-on-dark-muted);
  margin-bottom: 24px;
}

#sobre ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

#sobre li{
  padding: 6px 0;
  color: var(--text-on-dark);
  border-bottom: 1px solid rgba(242, 227, 186, 0.10);
}

#sobre .image{
  flex: 1 1 280px;
  min-width: 280px;
}

#sobre img{
  width: 100%;
  max-height: 360px;
  border-radius: var(--radius);
  border: 2px solid rgba(201, 161, 99, 0.28);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.45);
  object-fit: cover;
}

/* ==========================
   BOX "MISSÃO, VISÃO E VALORES"
   ========================== */
.box-missao-visao{
  background: radial-gradient(circle at 0 0, rgba(34, 50, 76, 0.92) 0%, rgba(22, 34, 56, 0.95) 70%);
  border: 1px solid rgba(201, 161, 99, 0.38);
  color: var(--text-on-dark);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.60);
  border-radius: var(--radius);
}

.box-missao-visao.bg-light{
  background: radial-gradient(circle at 0 0, rgba(34, 50, 76, 0.92) 0%, rgba(22, 34, 56, 0.95) 70%) !important;
}

.box-missao-visao h3{
  color: var(--brand-gold);
  margin-bottom: 14px;
}

.box-missao-visao ul{
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.box-missao-visao li{
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: rgba(242, 227, 186, 0.90);
}

.box-missao-visao li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-gold);
  font-weight: 800;
}

/* ==========================
   SERVIÇOS (HOME e /servicos)
   ========================== */
section#servicos{
  background-color: var(--navy-3);
  padding: 80px 0 70px;
}

#servicos h2{
  font-size: 2rem;
  color: var(--brand-gold);
  margin-bottom: 20px;
  text-align: left;
  font-family: var(--font-display);
}

#servicos p.lead{
  max-width: 850px;
  color: var(--text-on-dark-muted);
  margin-bottom: 40px;
}

.services-grid a{
  display: block;
  text-decoration: none;
  color: inherit;
}

.services-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-block{
  background: rgba(34, 50, 76, 0.55);
  border: 1px solid rgba(201, 161, 99, 0.22);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: all 0.25s ease;
  height: 100%;
}

.services-grid a:hover .service-block,
.service-block:hover{
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(201, 161, 99, 0.18);
  border-color: rgba(201, 161, 99, 0.36);
}

.service-block h3{
  color: var(--brand-gold);
  margin-bottom: 12px;
}

.service-block ul{
  margin: 0;
  padding-left: 18px;
}

.service-block li{
  color: rgba(242, 227, 186, 0.88);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

/* ==========================
   CTA SERVIÇOS
   ========================== */
.cta-servicos{
  background: rgba(34, 50, 76, 0.60);
  border: 1px solid rgba(201, 161, 99, 0.38);
  color: var(--text-on-dark);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.55);
  border-radius: var(--radius);
  padding: 24px 22px;
  max-width: 960px;
  margin: 0 auto;
}

.cta-servicos h2{
  color: var(--brand-gold);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.cta-servicos p{
  color: rgba(242, 227, 186, 0.82);
  margin-bottom: 16px;
}

.cta-servicos .btn-primary{
  background-color: var(--brand-gold);
  border: none;
  font-weight: 700;
  color: var(--navy-3);
  padding: 10px 26px;
  border-radius: 10px;
}

.cta-servicos .btn-primary:hover{
  background-color: rgba(201, 161, 99, 0.92);
  color: var(--navy-3);
}

/* ==========================
   CERTIFICADOS
   ========================== */
section#certificados{
  background-color: var(--brand-navy);
  padding: 90px 0;
}

#certificados h2{
  font-size: 2rem;
  color: var(--brand-gold);
  margin-bottom: 40px;
  text-align: left;
  font-family: var(--font-display);
}

.certificados-container{
  overflow: hidden;
}

.certificados-track{
  display: flex;
  gap: 40px;
  animation: scrollCertificados 45s linear infinite;
}

.certificado-item{
  min-width: 260px;
  text-align: center;
  transition: transform 0.3s ease;
}

.certificado-item img,
.certificado-item iframe{
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 161, 99, 0.28);
  background: rgba(34, 50, 76, 0.55);
}

.certificado-item:hover{
  transform: scale(1.05);
}

.cert-titulo{
  color: var(--text-on-dark);
  margin-top: 10px;
}

@keyframes scrollCertificados{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ==========================
   FORMULÁRIOS (SITE) — GLOBAL
   (para páginas que usam .form-control)
   ========================== */
.form-label{
  font-weight: 700;
  color: var(--text-on-dark);
}

.form-control,
.form-select,
textarea.form-control{
  background-color: rgba(22, 34, 56, 0.85);
  color: var(--text-on-dark);
  border: 1px solid rgba(242, 227, 186, 0.16);
  border-radius: 10px;
}

.form-control::placeholder,
textarea.form-control::placeholder{
  color: rgba(242, 227, 186, 0.65);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus{
  outline: none;
  border-color: rgba(201, 161, 99, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(201, 161, 99, 0.18);
}

/* ==========================
   CONTATO (HOME)
   (para HOME que usa inputs “puros”)
   ========================== */
section#contato{
  background-color: var(--navy-3);
  padding: 100px 0;
  border-top: 1px solid var(--border-gold);
}

section#contato form{
  background: rgba(34, 50, 76, 0.60);
  padding: 35px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 161, 99, 0.22);
  max-width: 600px;
}

section#contato form label{
  color: var(--text-on-dark);
  font-weight: 700;
}

section#contato form input,
section#contato form textarea{
  width: 100%;
  background-color: rgba(22, 34, 56, 0.85);
  color: rgba(242, 227, 186, 0.92);
  border: 1px solid rgba(242, 227, 186, 0.16);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 15px;
}

section#contato form input:focus,
section#contato form textarea:focus{
  outline: none;
  border-color: rgba(201, 161, 99, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(201, 161, 99, 0.18);
}

section#contato form .btn-primary{
  background-color: var(--brand-gold);
  border: none;
  padding: 10px 25px;
  color: var(--navy-3);
  font-weight: 800;
  border-radius: 10px;
  transition: all 0.25s ease;
}

section#contato form .btn-primary:hover{
  background-color: rgba(201, 161, 99, 0.92);
}

/* ==========================
   CONTATO (HOME) — Marca d’água (SÓ na HOME)
   (centralizada no “espaço vago” à direita)
   ========================== */
#contato.contato-home{
  position: relative;
  overflow: hidden;
}

#contato.contato-home > .container{
  position: relative;
  z-index: 1;
}

#contato.contato-home::before{
  content:"";
  position:absolute;
  top: 50%;

  /* joga pro lado direito (espaço vago) */
  left: 76%;
  transform: translate(-50%, -50%);

  width: clamp(320px, 46vw, 760px);
  height: clamp(320px, 46vw, 760px);

  background: url('/images/brand/logo-marcadagua-6.png') no-repeat center/contain;

  /* forte, mas premium */
  opacity: .16;

  filter:
    drop-shadow(0 18px 45px rgba(0,0,0,.35))
    contrast(1.12);

  pointer-events: none;
  z-index: 0;
}

/* Mobile: sem “espaço vago”, então centraliza e reduz */
@media (max-width: 992px){
  #contato.contato-home::before{
    left: 50%;
    opacity: .10;
    width: clamp(260px, 70vw, 520px);
    height: clamp(260px, 70vw, 520px);
  }
}

@media (max-width: 576px){
  #contato.contato-home::before{
    display: none;
  }
}

/* ==========================
   FOOTER
   ========================== */
footer{
  background-color: var(--navy-3);
  color: rgba(242, 227, 186, 0.75);
  padding: 30px 0;
  border-top: 1px solid rgba(201, 161, 99, 0.28);
  text-align: left;
  font-size: 0.9rem;
}

/* ==========================
   BOX LATERAL (DP / RH / FINANCEIRO)
   ========================== */
.service-side-box{
  background: rgba(34, 50, 76, 0.60);
  border: 1px solid rgba(201, 161, 99, 0.38);
  color: var(--text-on-dark);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.55);
  border-radius: var(--radius);
}

.service-side-box.bg-light{
  background: rgba(34, 50, 76, 0.60) !important;
}

/* ==========================
   HERO DE PÁGINAS (sem inline)
   use: <header class="page-hero">
   ========================== */
.page-hero{
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: var(--text-on-dark);
  background: linear-gradient(135deg, rgba(22,34,56,.96), rgba(34,50,76,.92));
  border-bottom: 1px solid var(--border-gold);
}

.page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--hero-pattern);
  background-repeat: repeat;
  background-size: 1800px 1800px;
  background-position: center;
  opacity: .06;
  filter: blur(.6px);
  transform: scale(1.02);
  pointer-events:none;
}

.page-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 15%, rgba(201,161,99,.10), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.35));
  pointer-events:none;
}

.page-hero > .container{
  position: relative;
  z-index: 1;
}

.page-hero__title{
  color: var(--brand-gold);
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.page-hero__lead{
  color: var(--text-on-dark-muted);
}

/* ==========================
   BOX LATERAL — CONTATO (página /contato)
   ========================== */
.contact-side-box{
  background: rgba(34, 50, 76, 0.60);
  border: 1px solid rgba(201, 161, 99, 0.30);
  border-radius: var(--radius);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}

.contact-side-box a{
  color: var(--brand-cream);
  font-weight: 700;
  text-decoration: none;
}

.contact-side-box a:hover{
  text-decoration: underline;
  color: var(--brand-gold);
}

/* ==========================
   RESPONSIVO
   ========================== */
@media (max-width: 992px){
  header#inicio{
    padding: 80px 0;
  }

  section#sobre{
    text-align: center;
    padding: 70px 0;
  }

  #sobre .text{
    max-width: 100%;
  }

  #sobre .text ul{
    display: inline-block;
    text-align: left;
  }

  #sobre .image{
    margin-top: 25px;
  }

  section#servicos{
    padding: 60px 0 50px;
  }

  .services-grid{
    gap: 24px;
  }

  .container{
    padding: 0 20px;
  }

  footer{
    text-align: center;
  }
}

@media (max-width: 768px){
  .cta-servicos{
    text-align: center;
  }

  .cta-servicos .btn-primary{
    width: 100%;
  }

  section#contato{
    padding: 70px 0;
  }
}

@media (max-width: 576px){
  header#inicio{
    padding: 60px 0;
  }

  header#inicio h1{
    font-size: 2.2rem;
  }

  section#sobre{
    padding: 60px 0;
  }

  #sobre h2{
    font-size: 1.7rem;
  }
}
/* ==========================
   CERTIFICAÇÕES (PÁGINA)
   ========================== */

.cert-page{
  background-color: var(--navy-3);
}

.cert-item{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;

  background: rgba(34, 50, 76, 0.55);
  border: 1px solid rgba(201, 161, 99, 0.22);
  border-radius: var(--radius);
  padding: 22px;
  overflow: hidden;
}

.cert-item--reverse{
  grid-template-columns: 1fr 1.1fr;
}

.cert-item--reverse .cert-item__media{
  order: 2;
}

.cert-item--reverse .cert-item__text{
  order: 1;
}

.cert-media{
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(201, 161, 99, 0.28);
  background: rgba(22, 34, 56, 0.75);
  overflow: hidden;
}

.cert-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cert-media iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cert-open{
  display: inline-block;
  margin-top: 10px;
  color: var(--brand-cream);
  font-weight: 800;
  text-decoration: none;
}

.cert-open:hover{
  color: var(--brand-gold);
  text-decoration: underline;
}

.cert-title{
  color: var(--brand-gold);
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.cert-desc{
  color: var(--text-on-dark);
  margin: 0 0 14px 0;
  max-width: 70ch;
}

.cert-desc--muted{
  color: var(--text-on-dark-muted);
}

.cert-meta{
  color: rgba(242, 227, 186, 0.72);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-meta .dot{
  opacity: .6;
}

@media (max-width: 992px){
  .cert-item,
  .cert-item--reverse{
    grid-template-columns: 1fr;
  }
  .cert-item--reverse .cert-item__media,
  .cert-item--reverse .cert-item__text{
    order: initial;
  }
}
