/* ============================================================
   IAGUA PA - Instituto Amazônico de Planejamento, Gestão Urbana e Ambiental
   style.css — Estilo principal
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --blue-dark:   #003260;
  --blue-mid:    #36B1D0;
  --blue-light:  #4AD5F7;
  --white:       #FFFFFF;
  --gray-light:  #F5F7FA;
  --gray-mid:    #E2E8F0;
  --gray-text:   #64748B;
  --text-dark:   #1E293B;
  --text-mid:    #334155;

  --font-main:   'Poppins', sans-serif;
  --font-body:   'Open Sans', sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-sm:   0 2px 8px rgba(0,50,96,0.08);
  --shadow-md:   0 8px 32px rgba(0,50,96,0.12);
  --shadow-lg:   0 20px 60px rgba(0,50,96,0.16);

  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h:    72px;
  --max-w:       1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

address { font-style: normal; }

/* ---- Utility ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--gray-light); }
.section--dark { background: var(--blue-dark); }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  background: rgba(54,177,208,0.1);
  border: 1px solid rgba(54,177,208,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section__tag--light {
  color: var(--blue-light);
  background: rgba(74,213,247,0.1);
  border-color: rgba(74,213,247,0.25);
}

.section__title {
  font-family: var(--font-main);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__title--light { color: var(--white); }

.section__subtitle {
  font-size: 1rem;
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section__subtitle--light { color: rgba(255,255,255,0.7); }

.section__cta {
  text-align: center;
  margin-top: 48px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(54,177,208,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--text {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--blue-mid);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-main);
  gap: 6px;
}
.btn--text i { transition: transform var(--transition); }
.btn--text:hover i { transform: translateX(4px); }
.btn--text:hover { color: var(--blue-dark); }

.btn--download {
  background: rgba(54,177,208,0.1);
  color: var(--blue-mid);
  border-color: rgba(54,177,208,0.2);
  font-size: 0.8rem;
  padding: 8px 16px;
}
.btn--download:hover, .btn--download:focus-visible {
  background: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
}

.btn--sm { padding: 8px 18px; font-size: 0.8rem; }
.btn--lg { padding: 14px 28px; font-size: 0.95rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---- Focus visible ---- */
:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo__icon svg { width: 100%; height: 100%; }

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.header:not(.scrolled) .logo__name { color: var(--white); }

.logo__domain {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--blue-mid);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.header:not(.scrolled) .logo__domain { color: rgba(255,255,255,0.7); }

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 12px; right: 12px;
  height: 2px;
  background: var(--blue-mid);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__link:hover { color: var(--blue-dark); }

.header:not(.scrolled) .nav__link { color: rgba(255,255,255,0.9); }
.header:not(.scrolled) .nav__link:hover { color: var(--white); }
.header:not(.scrolled) .nav__link::after { background: var(--blue-light); }

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.header.scrolled .hamburger span { background: var(--blue-dark); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
  padding-top: var(--header-h);
}

/* Background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(54,177,208,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(0,50,96,0.8) 0%, transparent 70%),
    linear-gradient(135deg, rgba(0,50,96,0.95) 0%, rgba(0,30,60,0.85) 50%, rgba(54,177,208,0.3) 100%);
  z-index: 1;
}

/* Particles */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--blue-light);
  animation: float-particle linear infinite;
  opacity: 0;
}

@keyframes float-particle {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* Floating shapes */
.hero__shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(74,213,247,0.15);
}

.shape--1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  animation: rotate-slow 40s linear infinite;
}
.shape--2 {
  width: 400px; height: 400px;
  bottom: -150px; left: -80px;
  border-color: rgba(54,177,208,0.1);
  animation: rotate-slow 30s linear infinite reverse;
}
.shape--3 {
  width: 200px; height: 200px;
  top: 30%; right: 20%;
  border-color: rgba(255,255,255,0.06);
  animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(74,213,247,0.1);
  border: 1px solid rgba(74,213,247,0.3);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.hero__title-main {
  font-family: var(--font-main);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #4AD5F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title-sub {
  font-family: var(--font-main);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.01em;
}

.hero__text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 40px;
  font-family: var(--font-body);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__actions .btn--outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.hero__actions .btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  backdrop-filter: blur(10px);
  max-width: 700px;
}

.stat {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 8px;
}

.stat__num {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
}

.stat__plus {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-mid);
}

.stat__label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  margin-top: 4px;
}

.stat__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--white);
  border-radius: 50%;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.3; transform: translateX(-50%) translateY(14px); }
}

/* ============================================================
   HISTÓRIA
   ============================================================ */
.historia__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.historia__content .section__tag { margin-bottom: 12px; }

.historia__content .section__title {
  text-align: left;
  margin-bottom: 24px;
}

.historia__text p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.historia__text strong { color: var(--blue-dark); }

.historia__values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--blue-mid);
  transition: var(--transition);
}

.value-item:hover {
  background: rgba(54,177,208,0.06);
  transform: translateX(4px);
}

.value-item__icon {
  width: 40px;
  height: 40px;
  background: var(--blue-dark);
  color: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.value-item strong {
  display: block;
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--blue-dark);
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.value-item p {
  font-size: 0.82rem;
  color: var(--gray-text);
  line-height: 1.5;
}

/* Visual column */
.historia__visual { position: relative; }

.historia__img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.historia__illustration {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Floating cards */
.historia__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-dark);
  animation: float-card 4s ease-in-out infinite;
  white-space: nowrap;
}

.historia__card i { color: var(--blue-mid); font-size: 1rem; }

.historia__card--1 {
  top: 10%;
  left: -30px;
  animation-delay: 0s;
}

.historia__card--2 {
  bottom: 15%;
  right: -20px;
  animation-delay: 2s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* ============================================================
   PROJETOS
   ============================================================ */
.projetos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.projeto-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray-mid);
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.projeto-card:hover, .projeto-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.projeto-card:hover .projeto-card__bg { opacity: 1; }

.projeto-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, rgba(0,50,96,0.95) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.projeto-card__icon,
.projeto-card__body {
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

.projeto-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(54,177,208,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--blue-mid);
  margin-bottom: 24px;
  transition: var(--transition);
}

.projeto-card:hover .projeto-card__icon {
  background: rgba(74,213,247,0.15);
  color: var(--blue-light);
}

.projeto-card__title {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.projeto-card:hover .projeto-card__title { color: var(--white); }

.projeto-card__text {
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.65;
  margin-bottom: 20px;
  transition: color var(--transition);
}

.projeto-card:hover .projeto-card__text { color: rgba(255,255,255,0.75); }

.projeto-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-mid);
  transition: var(--transition);
}

.projeto-card__link i { transition: transform var(--transition); }
.projeto-card__link:hover i { transform: translateX(4px); }

.projeto-card:hover .projeto-card__link { color: var(--blue-light); }

/* ============================================================
   NOTÍCIAS
   ============================================================ */
.noticias__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.noticia-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-mid);
  transition: var(--transition);
}

.noticia-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.noticia-card__img { height: 200px; overflow: hidden; }

.noticia-card__img-inner {
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

/* Gradient backgrounds for news images */
.noticia-card__img--1 {
  background: linear-gradient(160deg, #003260 0%, #36B1D0 60%, #4AD5F7 100%);
}
.noticia-card__img--2 {
  background: linear-gradient(160deg, #0a4a2a 0%, #1a7a4a 60%, #36B1D0 100%);
}
.noticia-card__img--3 {
  background: linear-gradient(160deg, #1a0a4a 0%, #36B1D0 60%, #4AD5F7 100%);
}

.noticia-card__category {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.noticia-card__body {
  padding: 24px;
}

.noticia-card__date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--blue-mid);
  font-family: var(--font-main);
  font-weight: 500;
  margin-bottom: 10px;
}

.noticia-card__title {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.noticia-card__text {
  font-size: 0.82rem;
  color: var(--gray-text);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ============================================================
   PARCEIROS
   ============================================================ */
.parceiros__carousel {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
}

.parceiros__carousel::before,
.parceiros__carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.parceiros__carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--gray-light), transparent);
}

.parceiros__carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--gray-light), transparent);
}

.parceiros__track {
  display: flex;
  gap: 24px;
  animation: scroll-partners 20s linear infinite;
  width: max-content;
}

.parceiros__track:hover { animation-play-state: paused; }

@keyframes scroll-partners {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.parceiro-item {
  flex-shrink: 0;
  width: 220px;
}

.parceiro-item__logo {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.parceiro-item:hover .parceiro-item__logo {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.parceiro-item__logo i {
  font-size: 2rem;
  color: var(--blue-dark);
}

.parceiro-item__logo span {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  text-align: center;
}

/* ============================================================
   PUBLICAÇÕES
   ============================================================ */
.publicacoes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pub-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(54,177,208,0.3);
}

.pub-card__type {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pub-card__title {
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.4;
  flex: 1;
}

.pub-card__meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--gray-text);
  font-family: var(--font-main);
}

.pub-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pub-card__desc {
  font-size: 0.82rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ============================================================
   CONTATO
   ============================================================ */
.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Form */
.contato__form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-dark);
  background: var(--gray-light);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: var(--transition);
  outline: none;
  resize: none;
  width: 100%;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--blue-mid);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(54,177,208,0.1);
}

.form-input.error, .form-textarea.error {
  border-color: #ef4444;
  background: #fff5f5;
}

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  font-family: var(--font-main);
  min-height: 18px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-sm);
  color: #065f46;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 12px;
}

/* Info column */
.contato__info-title {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.info-item__icon {
  width: 44px;
  height: 44px;
  background: rgba(74,213,247,0.1);
  border: 1px solid rgba(74,213,247,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--blue-light);
  flex-shrink: 0;
}

.info-item__text strong {
  display: block;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.info-item__text p, .info-item__text address {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.info-item__text a {
  color: var(--blue-light);
  transition: var(--transition);
}
.info-item__text a:hover { color: var(--white); }

/* Social links */
.contato__social { margin-top: 32px; }

.contato__social h4 {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.social-links { display: flex; gap: 12px; }

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.15);
}

.social-link--facebook {
  background: rgba(24,119,242,0.15);
  color: #4dabf7;
}
.social-link--facebook:hover {
  background: #1877F2;
  color: var(--white);
  border-color: #1877F2;
}

.social-link--instagram {
  background: rgba(228,64,95,0.15);
  color: #f8a0b0;
}
.social-link--instagram:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white);
  border-color: #dc2743;
}

.social-link--email {
  background: rgba(74,213,247,0.1);
  color: var(--blue-light);
}
.social-link--email:hover {
  background: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #020d1a;
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Brand */
.footer__brand .logo__name { color: var(--white); }
.footer__brand .logo__domain { color: var(--blue-mid); }

.footer__tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 260px;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer__social a:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: var(--white);
}

/* Nav columns */
.footer__nav-title {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer__nav a:hover { color: var(--blue-light); padding-left: 4px; }

/* Contact list */
.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.footer__contact-list i {
  color: var(--blue-mid);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.footer__contact-list a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer__contact-list a:hover { color: var(--blue-light); }

/* Footer bottom */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: var(--transition);
}
.footer__bottom-links a:hover { color: var(--blue-light); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-mid);
  transform: translateY(-4px);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--right {
  transform: translateX(40px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }
.reveal--delay-4 { transition-delay: 0.6s; }

/* ============================================================
   RESPONSIVE — Tablet (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .historia__grid { grid-template-columns: 1fr; gap: 48px; }
  .historia__visual { order: -1; max-width: 480px; margin: 0 auto; }
  .historia__content .section__title { text-align: center; }
  .historia__content .section__tag { display: block; text-align: center; }
  .projetos__grid { grid-template-columns: repeat(2, 1fr); }
  .noticias__grid { grid-template-columns: repeat(2, 1fr); }
  .publicacoes__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .section { padding: 64px 0; }
  .section__header { margin-bottom: 40px; }

  /* Header */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(0,50,96,0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }

  .nav__link {
    color: var(--white) !important;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .nav__link::after { display: none; }
  .nav__link:hover { background: rgba(255,255,255,0.1); }

  .header__actions .btn { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero__stats {
    padding: 16px;
    gap: 0;
  }

  .stat__num { font-size: 1.5rem; }
  .stat__label { font-size: 0.65rem; }
  .stat__divider { height: 32px; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Grids */
  .projetos__grid { grid-template-columns: 1fr; gap: 16px; }
  .noticias__grid { grid-template-columns: 1fr; }
  .publicacoes__grid { grid-template-columns: 1fr; }
  .contato__grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  /* Historia cards */
  .historia__card--1 { left: 0; top: 5%; }
  .historia__card--2 { right: 0; bottom: 5%; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__bottom-links { justify-content: center; }

  /* Back to top */
  .back-to-top { bottom: 20px; right: 20px; }
}

/* ============================================================
   RESPONSIVE — Small mobile (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero__stats { flex-direction: column; gap: 0; }
  .stat__divider { width: 60px; height: 1px; margin: 8px auto; }
  .contato__form-wrap { padding: 24px 20px; }
  .hero__badge { font-size: 0.68rem; }
}
