@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

/* ===== VARIAVEIS ===== */
:root {
  /* cores */
  --burgundy:        #7A1F1F;
  --burgundy-dark:   #5A1616;
  --burgundy-darker: #3D0F0F;
  --burgundy-light:  #9A3535;
  --cream:           #F8EFEF;
  --cream-dark:      #F0E3E3;
  --white:           #FFFFFF;
  --text:            #2B2424;
  --text-soft:       #5C5050;
  --text-on-dark:    #F8EFEF;
  --text-on-dark-soft: #D8C4C4;
  --border-soft:     rgba(122, 31, 31, 0.15);

  /* tipografia */
  --font-display: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* espacamento */
  --container:    1180px;
  --radius:       18px;
  --radius-lg:    28px;
  --section-pad:  clamp(3rem, 4.5vw, 4rem);
  --divider: rgba(122, 31, 31, 0.08);

  /* sombras */
  --shadow-sm: 0 2px 8px rgba(61, 15, 15, 0.08);
  --shadow-md: 0 8px 28px rgba(61, 15, 15, 0.14);
  --shadow-lg: 0 18px 50px rgba(61, 15, 15, 0.22);

  /* transicoes */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}





/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--burgundy-dark);
  letter-spacing: -0.02em;
}

/* Utl container */
.section-inner,
.header-inner,
.footer-inner,
.contact-strip-inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}





/* ===== SECOES ===== */
.section { 
  padding-block: var(--section-pad);
  position: relative; 
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2.5rem, calc(var(--container) + 100px));
  height: 2.5px;
  background: var(--divider);
}

.section:first-of-type::before {
  display: none;
}

.section-header { margin-bottom: 1.5rem; max-width: 720px; }
.section-header--wide { max-width: 1180px; }
.section-header--center { margin-inline: auto; text-align: center; }
.section-subtitle strong { color: var(--burgundy);}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: 1.075rem;
  color: var(--text-soft);
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--burgundy-light);
  margin-bottom: 0.5rem;
}





/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--burgundy-darker);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}

.site-header.is-hidden{
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
  gap: 1.5rem;
}

.logo-link {
  background: var(--white);
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  display: inline-flex;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.logo { height: 75px; width: auto; }

.nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-list a {
  color: var(--text-on-dark);
  font-weight: 500;
  font-size: 1.10rem;
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--burgundy-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-list a:hover { color: #fff; }
.nav-list a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Botão hambúrguer */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }





/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--burgundy-darker);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(61,15,15,0.35), rgba(61,15,15,0.45)), url('images/hero-office.png');
  background-size: cover;
  background-position: center;
}

.hero-card {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  max-width: 640px;
  margin: clamp(3rem, 8vw, 6rem) 0;
  margin-left: max(1.25rem, calc((100vw - var(--container)) / 2));
  box-shadow: var(--shadow-lg);
}
.hero-card .btn-whatsapp{
  display: flex;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  margin-bottom: 1.75rem;
}





/* ===== BOTOES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border-radius: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--burgundy); color: var(--white); }
.btn-primary:hover { background: var(--burgundy-dark); }

.btn-secondary {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-secondary:hover { background: var(--burgundy); color: var(--white); }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  position: relative;
  overflow: visible;
  padding-left: 6rem;
  font-size: 1.05rem;
  white-space: nowrap;
  width: fit-content;
}
.btn-whatsapp:hover { background: #1FB855; }
.btn-icon { width: 26px; height: 26px; flex-shrink: 0; }

.btn-whatsapp .btn-icon {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}
.btn-wsp-txt-full {display: inline;}
.btn-wsp-txt-short {display: none;}

@media (max-width: 760px) {
  .btn-wsp-txt-full {display: none;}
  .btn-wsp-txt-short {display: inline;}
}



/* ===== FAIXA DE CONTATO ===== */
.contact-strip {
  background: var(--burgundy);
  color: var(--text-on-dark);
}
.contact-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 12rem;
  padding-block: 1.1rem;
}
.contact-strip-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  transition: opacity 0.2s var(--ease);
}
.contact-strip-item:hover { opacity: 0.8; }
.contact-icon {
  width: 22px; height: 22px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}





/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--burgundy);
}
.card-text { color: var(--text-soft); font-size: 1rem; }
.card-link {
  display: inline-block;
  font-weight: 600;
  color: var(--burgundy);
  transition: gap 0.2s var(--ease);
}
.acao-card .card-link { 
  margin-top: auto; 
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--cream);
  color: var(--burgundy);
  align-self: flex-end;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.acao-card .card-link:hover {
  background: var(--cream-dark);
  transform: translateX(3px);
  text-decoration: none;
}

.acao-card .card-link:active {
  background: var(--cream-dark);
  transform: translateX(3px) scale(0.98);
}

.acao-card .card-text { margin-bottom: 1.5rem;}

.card-link:hover { text-decoration: underline; }






/* ===== FEED ===== */
.section-feed { background: var(--cream); }
.instagram-feed {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.instagram-widget-placeholder a { color: var(--burgundy); font-weight: 600; }





/* ===== CARROSSEL ===== */
.carousel { position: relative; }

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--burgundy-light) transparent;
}
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-thumb {
  background: var(--burgundy-light);
  border-radius: 4px;
}
.carousel-track::-webkit-scrollbar-track { background: transparent; }

.carousel-track > .card {
  flex: 0 0 clamp(280px, 32%, 360px);
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--burgundy);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
}

.carousel-btn.is-hidden { opacity: 0; pointer-events: none;}
.carousel-btn:hover { background: var(--burgundy-dark); transform: translateY(-50%) scale(1.08); }
.carousel-btn--prev { left: -10px; }
.carousel-btn--next { right: -10px; }

.acao-card { background: var(--burgundy); color: var(--text-on-dark); }
.acao-card .card-title { color: #fff; }
.acao-card .card-text { color: var(--text-on-dark-soft); }
.acao-card .card-link { color: var(--burgundy); }





/* ===== EQUIPE ===== */
.section-equipe { background: var(--cream); }

.equipe-card {
  background: var(--burgundy);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
}
.equipe-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-dark);
  margin-bottom: 1.1rem;
  border: 3px solid rgba(248,239,239,0.25);
}
.equipe-name {
  color: #fff;
  font-size: 1.45rem;
  margin-bottom: 0.2rem;
}
.equipe-role { font-weight: 600; color: var(--text-on-dark-soft); margin-bottom: 0.4rem; }
.equipe-role em { font-style: italic; font-weight: 400; }
.equipe-oab {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: rgba(248,239,239,0.15);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}
.equipe-areas { color: var(--text-on-dark-soft); margin-bottom: 0.85rem; font-size: 0.97rem; }
.equipe-dates {
  font-size: 0.92rem;
  color: var(--text-on-dark-soft);
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}
.equipe-formacao { font-size: 0.92rem; color: var(--text-on-dark-soft); }
.equipe-formacao li { padding-left: 1rem; position: relative; margin-bottom: 0.3rem; }
.equipe-formacao li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cream-dark);
}

/* Card memorial — tom sóbrio, distinto dos demais */
.equipe-card--memorial {
  background: var(--cream-dark);
  color: var(--text);
  border: 1px solid var(--border-soft);
}
.equipe-card--memorial .equipe-name { color: var(--burgundy-dark); }
.equipe-card--memorial .equipe-role,
.equipe-card--memorial .equipe-dates,
.equipe-card--memorial .equipe-bio { color: var(--text-soft); }
.equipe-card--memorial .equipe-photo {
  border-color: var(--border-soft);
  filter: grayscale(0.35);
}
.equipe-bio { font-size: 0.97rem; line-height: 1.7; }





/* ===== CONTATO ===== */
.contato-cta { text-align: center; margin-bottom: 3rem; }
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contato-info {
  background: var(--burgundy);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: 2.25rem;
}
.contato-label {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.contato-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(248,239,239,0.15);
}
.contato-list li:last-child { border-bottom: 0; }
.contato-list strong { display: block; color: var(--text-on-dark-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.15rem; }
.contato-list a { color: #fff; font-weight: 500; }
.contato-list a:hover { text-decoration: underline; }
.contato-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow-sm);
}
.contato-map iframe { width: 100%; height: 100%; min-height: 360px; }





/* ===== WSP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 16px rgba(37,211,102, 0.5));
  transition: transform 0.25s var(--ease);
  animation: wa-pulse 2.6s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); animation-play-state: paused; }
.whatsapp-float img { width: 100%; height:100%;}

@keyframes wa-pulse {
  0%   { transform: scale(1); }
  50%   { transform: scale(1.06); }
  100%   { transform: scale(1); }

}





/* ===== FOOTER ===== */
.site-footer {
  background: var(--burgundy-darker);
  color: var(--text-on-dark-soft);
  padding-block: 3rem 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem 3rem;
  align-items: center;
}
.footer-logo {
  height: 100px;
  width: auto;
  background: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
}
.footer-nav ul, .social-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a, .social-list a { transition: color 0.2s var(--ease); }
.footer-nav a:hover, .social-list a:hover { color: #fff; }
.footer-social-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-on-dark);
}
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(248,239,239,0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.footer-copy a { color: var(--text-on-dark); text-decoration: underline; }





/* ===== ANIMACOES ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}





/* ===== RESPONSIVIDADE ===== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .contato-grid { grid-template-columns: 1fr; }
  .hero-card { margin-inline: 1.25rem; max-width: 58%; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--burgundy-darker);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-list.is-open { max-height: 320px; }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(248,239,239,0.1);
  }
  .nav-list a::after { display: none; }

  .header-inner { position: relative; }

  /* Esconde o botão "anterior" no mobile, mantém o "próximo" como dica visual */
  .carousel-btn--prev { display: none; }

  /* Botão "próximo" no mobile: serve como dica de swipe */
  .carousel-btn--next {
    display: flex;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    right: 4px;
  }
  .carousel-track > .card { flex: 0 0 85%; }

  .contact-strip-inner { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding-block: 0.8rem;}
  .contact-strip-item { font-size: 0.85rem; gap:0.5rem;}
  .contact-icon { width: 16px; height: 16px;}

  .section-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }


  /* hero mobile */
  .hero-card {
    padding: 1.25rem;
    margin-block: 1.1rem;
  }
  .hero-title {
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
  }

  /* wsp mobile */
  .btn-whatsapp {
    white-space: nowrap;
    width: auto;
    max-width: 100%;
    padding: 0.85rem 1.2rem 0.85rem 4rem;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: left;
  }
  .btn-whatsapp .btn-icon{
    width: 60px;
    height: 60px;
    left: -14px;
  }

  /* float button */
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    z-index: 200;
  }

  /* insta feed */
  .instagram-feed {
    max-width: 100%;
  }

  /* map */
  .contato-map {
    min-height: 280px;
  }
  .contato-map iframe {
    min-height: 280px;
  }

  /* footer */
  .footer-nav ul, .social-list {
    flex-direction: column;
    gap: 0.4rem
  }

  /* hero card wsp */
  .hero-card .btn-whatsapp {
    padding: 0.5rem 0.8rem 0.5rem 2.4rem;
    font-size: 0.65rem;
  }
  .hero-card .btn-whatsapp .btn-icon {
    width: 38px;
    height: 38px;
    left: -14px;
  }

  .logo {height: 45px;}
  .logo-link { padding: 0.5rem 0.8rem;}
  .header-inner { padding-block: 0.7rem}
}



@media (max-width: 480px) {
  .card { padding: 1.5rem; }
  .hero-card { padding: 1.5rem; }
  .contato-info { padding: 1.5rem; }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 14px;
    bottom: 14px;
  }

  /* Botão WhatsApp ainda menor */
  .btn-whatsapp {
    padding: 0.85rem 0.9rem 0.85rem 4rem;
    font-size: 0.9rem;
  }
  .btn-whatsapp .btn-icon {
    width: 60px;
    height: 60px;
    left: -12px;
  }

  /* Section title bem proporcional */
  .section-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
}