

/* ============================
   SCROLL REVEAL ANIMATIONS
   ============================ */

[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-left"] {
  transform: translateX(-50px);
}

[data-animate="fade-right"] {
  transform: translateX(50px);
}

[data-animate="fade-in"] {
  transform: scale(0.97);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================
   HAMBURGER MENU — BASE STYLES
   ============================ */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-close {
  display: none;
}

/* ============================
   TABLET — max-width: 1024px
   ============================ */
@media (max-width: 1024px) {

  header .content .logo {
    max-width: 180px;
  }

  header .content nav {
    gap: 20px;
  }

  header .content nav a {
    font-size: 16px;
  }

  /* Page hero */
  section.page-hero h1 {
    font-size: 52px;
    line-height: 58px;
  }

  /* Blog sticky */
  .blog_sticky .sticky-card .info h3 {
    font-size: 38px;
    line-height: 46px;
  }

  /* Areas grid — 2 columns on tablet */
  section.areas-grid .content .area-card {
    max-width: calc(50% - 30px);
  }

  /* Article cards — 2 columns on tablet */
  .article-card {
    max-width: calc(50% - 26px);
  }

  /* Team list */
  section.team-list .content {
    max-width: 100%;
  }

  section.team-list .content .member-row .member-photo {
    width: 300px;
  }

  section.team-list .content .member-row h2 {
    font-size: 32px;
    line-height: 46px;
  }

  /* Profile */
  section.profile .content .profile-photo {
    max-width: 300px;
  }

  section.profile .content .profile-info h1 {
    font-size: 52px;
  }

  /* Footer */
  footer .content .top {
    flex-wrap: wrap;
    gap: 40px;
  }
}

/* ============================
   MOBILE — max-width: 768px
   ============================ */
@media (max-width: 768px) {

  header .content .logo {
    max-width: 140px;
  }

  /* Hamburger button visible */
  .menu-toggle {
    display: flex;
  }

  /* Nav becomes fullscreen overlay */
  header .content nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 149;
    padding: 80px 20px 40px;
    height: 100dvh;
  }

  header .content nav.nav-open {
    display: flex;
  }

  header .content nav a {
    font-size: 22px;
    line-height: 28px;
    color: var(--white);
    font-weight: 300;
  }

  header .content nav a.active {
    font-weight: 600;
  }

  header .content nav a.btn-contact {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 24px;
    border-radius: 6px;
  }

  /* Close button inside nav */
  .nav-close {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    font-family: 'Manrope', sans-serif;
    z-index: 151;
    line-height: 1;
  }

  /* Body offset for fixed header */
  body {
    padding-top: 70px;
  }

  /* Prevent scroll when nav open */
  body.menu-open {
    overflow: hidden;
  }

  /* === HERO SECTIONS === */

  .who_hero,
  section.area_single-hero,
  section.contat_hero {
    height: auto;
    min-height: 380px;
    padding: 80px 0 50px;
    align-items: flex-end;
  }

  .who_hero .content h1,
  section.area_single-hero .content h1 {
    font-size: 40px;
    line-height: 46px;
    max-width: 100%;
  }

  section.contat_hero .content h1 {
    font-size: 40px;
    line-height: 46px;
    max-width: 100%;
  }

  .who_hero .content p,
  section.area_single-hero .content p,
  section.contat_hero .content p {
    font-size: 18px;
    line-height: 26px;
    max-width: 100%;
  }

  /* Page hero */
  section.page-hero {
    padding: 100px 0 30px;
  }

  section.page-hero h1 {
    font-size: 40px;
    line-height: 46px;
  }

  section.page-hero p {
    font-size: 18px;
    line-height: 26px;
  }

  /* === BLOG STICKY === */

  .blog_sticky {
    padding: 60px 0 0;
  }

  .blog_sticky h2 {
    font-size: 34px;
    line-height: 42px;
    margin: 0 0 28px;
  }

  .blog_sticky .sticky-card {
    flex-direction: column;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    gap: 0;
  }

  .blog_sticky .sticky-card .img {
    max-width: 100%;
    height: 260px;
    overflow: hidden;
  }

  .blog_sticky .sticky-card .img img {
    height: 260px;
    object-fit: cover;
  }

  .blog_sticky .sticky-card .info {
    padding: 28px 16px;
  }

  .blog_sticky .sticky-card .info .tag{
    font-size: 16px;
  }

  .blog_sticky .sticky-card .info h3 {
    font-size: 26px;
    line-height: 34px;
    max-width: 100%;
  }

  .blog_sticky .sticky-card .info p {
    font-size: 17px;
    line-height: 26px;
  }

  /* === LAST ARTICLES === */

  .last_articles {
    padding: 40px 0;
  }

  .last_articles h2 {
    font-size: 34px;
    line-height: 46px;
    margin: 0 0 28px;
  }

  .last_articles .articles-grid {
    gap: 24px;
    flex-direction: column;
  }

  /* === ARTICLE CARDS === */

  .article-card {
    max-width: 100%;
  }

  .article-card .thumb {
    height: 220px;
  }

  /* === ARTIGOS GRID (equipe-single) === */

  section.artigos .artigos-grid {
    flex-direction: column;
    gap: 24px;
  }

  section.artigos .artigos-grid .article-card {
    max-width: 100%;
  }

  /* === AREAS GRID === */

  section.areas-grid .content {
    flex-direction: column;
    gap: 28px;
  }

  section.areas-grid .content .area-card {
    max-width: 100%;
    height: 480px;
  }

  section.areas-grid .content .area-card .content {
    left: 20px;
    max-width: calc(100% - 40px);
    bottom: 24px;
    gap: 16px;
  }

  section.areas-grid .content .area-card .content h2 {
    font-size: 28px;
    line-height: 34px;
  }

  section.areas-grid .content .area-card .content p {
    font-size: 17px;
    line-height: 25px;
  }

  /* === TEAM LIST === */

  section.team-list .content {
    max-width: 100%;
    padding: 40px 20px 60px;
    gap: 36px;
  }

  section.team-list .content .member-row {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    background: var(--white);
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0px 10.6885px 16.0327px -3.20655px rgba(0, 0, 0, 0.1), 0px 4.2754px 6.4131px -4.2754px rgba(0, 0, 0, 0.1);
    border-radius: 17.1016px;
  }

  section.team-list .content .member-row .member-photo {
    width: 100%;
    height: 260px;
  }

  section.team-list .content .member-row .member-photo img{
    border-radius: 16px 16px 0 0;
  }

  section.team-list .content .member-row .member-info{
    padding: 20px 16px;
  }

  section.team-list .content .member-row h2 {
    font-size: 26px;
    line-height: 34px;
    margin: 10px 0 14px;
  }

  section.team-list .content .member-row p {
    font-size: 17px;
    line-height: 26px;
  }

  section.team-list .content .member-row .member-meta .member-role,
  section.team-list .content .member-row .member-meta .member-area{
    font-size: 14px;
  }

  section.team-list .content .member-row .member-meta{
    gap: 8px;
  }

  section.team-list .content .member-row .member-meta .meta-sep {
    width: 12px;
  }

  /* === PROFILE (equipe-single) === */

  .team_single {
    padding: 80px 0 0;
  }

  section.profile .content {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  section.profile .content .profile-photo {
    max-width: 100%;
    height: 280px;
  }

  section.profile .content .profile-info h1 {
    font-size: 38px;
    line-height: 44px;
    text-align: left;
  }

  section.profile .content .profile-info .profile-contacts {
    flex-wrap: wrap;
    gap: 14px;
  }

  section.profile .content .profile-info .profile-contacts a {
    font-size: 17px;
    margin: 0 0 12px;
  }

  section.profile .content .profile-info .profile-tags .tags-single {
    flex-wrap: wrap;
    gap: 10px;
  }

  section.profile .content .profile-info .profile-tags .tags-single span {
    font-size: 16px;
  }

  section.formacao h2,
  section.artigos h2 {
    font-size: 26px;
    line-height: 34px;
  }

  section.bio p,
  section.formacao ul li {
    font-size: 17px;
    line-height: 26px;
  }

  /* === WHO PAGE CONTENT === */

  section.who_page-content {
    padding: 48px 0;
  }

  section.who_page-content .content {
    flex-direction: column;
    gap: 36px;
  }

  section.who_page-content .content .main-text h2 {
    font-size: 26px;
    line-height: 34px;
  }

  section.who_page-content .content .main-text p {
    font-size: 17px;
    line-height: 26px;
  }

  section.who_page-content aside.impact {
    max-width: 100%;
    height: auto;
    position: static;
    padding: 28px 24px;
  }

  section.who_page-content aside.impact .impact-items {
    gap: 28px;
  }

  section.who_page-content aside.impact .impact-items .impact-item .number {
    font-size: 40px;
    line-height: 42px;
  }

  /* === AREA SINGLE CONTENT === */

  section.area_single-content {
    padding: 48px 0;
  }

  section.area_single-content .content {
    flex-direction: column;
    gap: 36px;
  }

  section.area_single-content .content .main-text h2 {
    font-size: 26px;
    line-height: 34px;
  }

  section.area_single-content .content .main-text p {
    font-size: 17px;
    line-height: 26px;
  }

  section.area_single-content .content aside.sidebar {
    max-width: 100%;
    height: auto;
    position: static;
    order: -1;
  }

  section.area_single-content .content aside.sidebar .sidebar-card a.btn-agendar {
    width: 100%;
    max-width: 100%;
  }

  /* === CONTACT === */

  section.contat_hero .content {
    text-align: left;
    align-items: flex-start;
  }

  section.contact_content {
    padding: 40px 0;
  }

  section.contact_content .content {
    flex-direction: column;
    gap: 36px;
  }

  section.contact_content .content .infos {
    max-width: 100%;
  }

  section.contact_content .content .form-content {
    padding: 28px 24px;
  }

  section.contact_content .content .form-content .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* === FOOTER === */

  footer {
    padding: 56px 0;
  }

  footer .content {
    gap: 44px;
  }

  footer .content .top {
    flex-direction: column;
    gap: 48px;
  }

  footer .content .bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
  }

  footer .content .bottom span,
  footer .content .bottom a {
    font-size: 15px;
  }
}

/* ============================
   SMALL MOBILE — max-width: 480px
   ============================ */
@media (max-width: 480px) {

  .who_hero .content h1,
  section.area_single-hero .content h1,
  section.contat_hero .content h1 {
    font-size: 30px;
    line-height: 36px;
  }

  section.page-hero h1 {
    font-size: 30px;
    line-height: 36px;
  }

  section.profile .content .profile-info h1 {
    font-size: 30px;
    line-height: 36px;
  }

  .blog_sticky .sticky-card .info h3 {
    font-size: 22px;
    line-height: 28px;
  }

  section.contact_content .content .form-content {
    padding: 20px 16px;
  }

  section.area_single-content .content aside.sidebar {
    padding: 24px 20px;
  }

  section.who_page-content aside.impact {
    padding: 24px 20px;
  }
}
