/* Andrade & Honorato — SITE INSTITUCIONAL (camada premium sobre style.css) */

/* Barra de acento no topo do header */
.site-header.has-nav { border-top: 3px solid var(--maroon); }

/* Navegação principal */
.header-inner { gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-link {
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: .96rem;
  color: var(--ink); position: relative; padding: 6px 0; letter-spacing: -0.01em;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--maroon); transition: right .28s cubic-bezier(.16,1,.3,1);
}
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--maroon); }
.header-cta { margin-left: 0; gap: 14px; }
.header-cta .header-phone { display: none; }
.btn-wa span { display: inline; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Botão outline claro (hero escuro) */
.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: var(--maroon); border-color: #fff; }

/* Section head centralizado */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { display: inline-block; }
.section-cta { text-align: center; margin-top: 40px; }

/* Hero da home — conteúdo alinhado ao container (não colado à esquerda) e mais largo */
.hero-home .hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.hero-home .hero-copy { max-width: 720px; }
.hero-home h1 { max-width: none; }

/* ---------- Cards de áreas (home) ---------- */
.area-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.area-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 30px -24px rgba(90,8,10,.4);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.area-card-img { aspect-ratio: 16/10; overflow: hidden; }
.area-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); filter: grayscale(.12); }
.area-card:hover .area-card-img img { transform: scale(1.06); filter: none; }
.area-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; position: relative; }
.area-card-ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--maroon); color: #fff;
  display: grid; place-items: center; margin: -46px 0 16px; box-shadow: var(--shadow); position: relative;
}
.area-card-ic svg { width: 24px; height: 24px; }
.area-card-body h3 { font-size: 1.28rem; margin-bottom: 10px; }
.area-card-body p { color: var(--muted); font-size: .96rem; margin: 0 0 18px; flex: 1; }
.area-card-link { display: inline-flex; align-items: center; gap: 8px; font-family: "Archivo", sans-serif; font-weight: 600; font-size: .95rem; color: var(--maroon); }
.area-card-link svg { width: 18px; height: 18px; transition: transform .25s ease; }
.area-card:hover .area-card-link svg { transform: translateX(4px); }

/* ---------- Page hero (banner interno) ---------- */
.page-hero {
  position: relative; color: #fff; isolation: isolate;
  padding: clamp(96px, 15vw, 168px) 0 clamp(44px, 7vw, 72px);
  margin-top: 0;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--hero-img); background-size: cover; background-position: center; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(48,4,5,.92) 0%, rgba(48,4,5,.78) 46%, rgba(40,4,5,.6) 100%); }
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { color: #f0c9c9; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 12px 0 0; letter-spacing: -0.02em; max-width: 20ch; }
.page-hero .lead { color: #f3e7e6; font-size: clamp(1.02rem, 2vw, 1.16rem); margin-top: 16px; max-width: 58ch; }

/* ---------- Áreas de atuação (página) ---------- */
.area-block-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.area-block-ic { width: 56px; height: 56px; border-radius: 14px; background: #f6eceb; color: var(--maroon); display: grid; place-items: center; flex: none; }
.area-block-ic svg { width: 28px; height: 28px; }
.area-block-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.area-block-intro { color: var(--muted); max-width: 70ch; font-size: 1.06rem; margin: 0 0 28px; }
.service-line { display: flex; align-items: center; gap: 12px; padding: 18px 20px; }
.service-line .service-ic { width: 30px; height: 30px; border-radius: 8px; margin: 0; flex: none; }
.service-line .service-ic svg { width: 17px; height: 17px; }
.service-line h3 { font-size: 1rem; margin: 0; }

/* ---------- Equipe: link WhatsApp ---------- */
.member-wa { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; margin-top: 18px; font-family: "Archivo", sans-serif; font-weight: 600; font-size: .95rem; color: var(--wa-dark); }
.member-wa svg { width: 19px; height: 19px; }
.member-wa:hover { color: var(--wa); }

/* ---------- Contato ---------- */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: stretch; }
.contato-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contato-item:first-child { padding-top: 0; }
.contato-ic { width: 46px; height: 46px; border-radius: 12px; background: #f6eceb; color: var(--maroon); display: grid; place-items: center; flex: none; }
.contato-ic svg { width: 22px; height: 22px; }
.contato-item h3 { font-size: 1.05rem; margin: 0 0 4px; }
.contato-item p { margin: 0 0 2px; font-size: 1.05rem; font-weight: 600; }
.contato-item span { color: var(--muted); font-size: .92rem; }
.contato-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 460px; }
.contato-map iframe { display: block; width: 100%; height: 100%; filter: grayscale(.12); }

/* ---------- Footer nav ---------- */
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.footer-nav a { color: #d8c6c5; font-size: .92rem; font-weight: 500; }
.footer-nav a:hover { color: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .area-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: #fff; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 8px; padding: 90px 34px 40px; transform: translateX(100%);
    transition: transform .34s cubic-bezier(.16,1,.3,1); box-shadow: -20px 0 50px -30px rgba(0,0,0,.5);
    z-index: 60; margin-left: 0;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .nav-link { font-size: 1.18rem; padding: 12px 0; }
  .nav-link::after { display: none; }
  .nav-toggle { display: flex; z-index: 61; order: 3; }
  .header-cta { margin-left: auto; }
  .contato-grid { grid-template-columns: 1fr; }
  .contato-map { min-height: 340px; }
}
@media (max-width: 620px) {
  .area-cards { grid-template-columns: 1fr; }
  .header-cta .btn-wa span { display: none; }
  .header-cta .btn-wa { padding: 12px; }
}
@media (min-width: 901px) {
  .nav-toggle { display: none; }
}
