/* ============================================================
   ITAME — Design System & Stylesheet
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Design Tokens ---- */
:root {
  --primary-900: #071a3e;
  --primary-800: #0c2461;
  --primary-700: #123171;
  --primary-600: #1a3f8f;
  --primary-500: #2251b8;
  --primary-400: #3b6fd4;
  --primary-300: #6491e8;
  --primary-100: #c8d9f8;
  --primary-50:  #e8f0fe;

  --accent-600: #b8911a;
  --accent-500: #c9a227;
  --accent-400: #d4b040;
  --accent-100: #f5e8c4;
  --accent-50:  #faf4e1;

  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;

  --success:  #16a34a;
  --success-bg: #dcfce7;
  --warning:  #d97706;
  --warning-bg: #fef3c7;
  --info:     #0284c7;
  --info-bg:  #e0f2fe;

  --white: #ffffff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --nav-h: 72px;
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .10), 0 1px 2px -1px rgb(0 0 0 / .10);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .10), 0 2px 4px -2px rgb(0 0 0 / .10);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .10), 0 4px 6px -4px rgb(0 0 0 / .10);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .12), 0 8px 10px -6px rgb(0 0 0 / .10);
  --shadow-card: 0 2px 8px rgb(0 0 0 / .08), 0 0 1px rgb(0 0 0 / .08);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 250ms var(--ease);
  --t-slow: 400ms var(--ease);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: #071a3e;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-400) #071a3e;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #071a3e; }
::-webkit-scrollbar-thumb { background: var(--primary-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-500); }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p  { color: var(--gray-600); line-height: 1.75; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: .875rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-500);
  border-radius: 2px;
}

.section-title { color: var(--gray-900); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: var(--gray-500); max-width: 560px; }
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin-inline: auto; }
.section-header.centered .section-label { justify-content: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: .9375rem;
  font-weight: 600;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary-600);
  color: var(--white);
  border-color: var(--primary-600);
}
.btn-primary:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  box-shadow: 0 4px 14px rgb(26 63 143 / .4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--white);
  color: var(--primary-700);
  border-color: var(--primary-200);
}
.btn-secondary:hover {
  background: var(--primary-50);
  border-color: var(--primary-400);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.9);
}
.btn-accent {
  background: var(--accent-500);
  color: var(--primary-900);
  border-color: var(--accent-500);
}
.btn-accent:hover {
  background: var(--accent-600);
  border-color: var(--accent-600);
  box-shadow: 0 4px 14px rgb(201 162 39 / .4);
  transform: translateY(-1px);
}
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-icon { padding: .75rem; border-radius: var(--radius-md); }

/* ---- Badge / Tag ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .25rem .75rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge-andamento { background: var(--info-bg);     color: var(--info); }
.badge-inscricoes { background: var(--success-bg);  color: var(--success); }
.badge-futuros    { background: var(--warning-bg);  color: var(--warning); }
.badge-finalizados { background: var(--gray-100);   color: var(--gray-600); }
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.navbar.transparent { background: transparent; }
.navbar.scrolled {
  background: var(--primary-900);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 20px rgba(0,0,0,.3);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  padding: .5rem .875rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: all var(--t-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav-cta {
  margin-left: .5rem;
  padding: .5rem 1.25rem;
  background: var(--accent-500);
  color: var(--primary-900) !important;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .9375rem;
  transition: all var(--t-base);
}
.nav-cta:hover {
  background: var(--accent-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,162,39,.4);
}
.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
}
.nav-mobile-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t-base);
}
.nav-mobile-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--primary-900);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0 1.5rem;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-link { display: block; padding: .75rem 1.5rem; border-radius: 0; }
.mobile-menu .nav-cta { display: block; margin: 1rem 1.5rem 0; text-align: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-900);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 110% 50%, rgba(34,81,184,.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at -10% 80%, rgba(12,36,97,.8) 0%, transparent 60%),
    linear-gradient(135deg, #071a3e 0%, #0c2461 40%, #123171 100%);
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-shape-1 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.hero-shape-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,111,212,.2) 0%, transparent 70%);
  bottom: -100px; left: -50px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(201,162,39,.15);
  border: 1px solid rgba(201,162,39,.3);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent-400);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-500);
  animation: pulse 2s ease infinite;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 800;
}
.hero h1 span { color: var(--accent-400); }
.hero-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-item {}
.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .25rem;
}
.hero-stat-number span { color: var(--accent-400); }
.hero-stat-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 2rem 2rem;
  z-index: 1;
}
.hero-card-float {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 360px;
}
.hero-card-float-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
}
.hero-card-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hero-card-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
}
.hero-card-text { flex: 1; }
.hero-card-name {
  font-weight: 600;
  color: var(--white);
  font-size: .9375rem;
  line-height: 1.3;
}
.hero-card-sub {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--primary-800);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .375rem;
}
.stat-number .accent { color: var(--accent-400); }
.stat-label {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,.1);
  margin-inline: auto;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 6rem 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-image-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.about-logo-img {
  width: 80%;
  max-width: 320px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.about-badge-floating {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--accent-500);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.about-badge-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-900);
  line-height: 1;
}
.about-badge-text {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary-800);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .25rem;
}
.about-features {
  margin-top: 2rem;
  display: grid;
  gap: .875rem;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}
.about-feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-feature-icon svg { color: var(--primary-600); }
.about-feature-text h4 { font-size: 1rem; margin-bottom: .125rem; color: var(--gray-900); }
.about-feature-text p { font-size: .875rem; color: var(--gray-500); margin: 0; line-height: 1.5; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 6rem 0; background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: all var(--t-base);
  cursor: default;
}
.service-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-icon-1 { background: #eff6ff; color: #1d4ed8; }
.service-icon-2 { background: #f0fdf4; color: #15803d; }
.service-icon-3 { background: #fefce8; color: #a16207; }
.service-icon-4 { background: #fdf4ff; color: #7e22ce; }
.service-icon-5 { background: #fff7ed; color: #c2410c; }
.service-icon-6 { background: #f0f9ff; color: #0369a1; }
.service-card h4 { font-size: 1.0625rem; margin-bottom: .5rem; color: var(--gray-900); }
.service-card p { font-size: .9rem; color: var(--gray-500); margin: 0; line-height: 1.6; }

/* ============================================================
   COMPETITIONS
   ============================================================ */
.competitions { padding: 6rem 0; background: var(--white); }
.tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  padding-bottom: 0;
}
.tab-btn {
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  border: none;
  background: none;
  position: relative;
  bottom: -1px;
  border-bottom: 2px solid transparent;
}
.tab-btn:hover { color: var(--primary-600); }
.tab-btn.active {
  color: var(--primary-700);
  border-bottom-color: var(--primary-600);
  background: none;
}
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .75rem;
  font-weight: 700;
  margin-left: .375rem;
  padding: 0 .375rem;
}
.tab-btn.active .tab-count {
  background: var(--primary-100);
  color: var(--primary-700);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.competitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.competition-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.competition-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.competition-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}
.competition-card-mun {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}
.competition-card-estado {
  display: inline-block;
  padding: .125rem .5rem;
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.competition-card-type {
  font-size: .8125rem;
  color: var(--gray-500);
  font-weight: 500;
}
.competition-card-num {
  font-size: .8125rem;
  color: var(--gray-400);
}
.competition-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .875rem;
  border-top: 1px solid var(--gray-100);
}
.competition-card-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary-600);
  display: flex;
  align-items: center;
  gap: .375rem;
  transition: gap var(--t-fast);
}
.competition-card-link:hover { gap: .625rem; }
.competitions-footer {
  text-align: center;
  margin-top: 3rem;
}
.competitions-empty {
  text-align: center;
  padding: 3rem;
  color: var(--gray-400);
}
.competitions-empty svg { margin-inline: auto; margin-bottom: 1rem; opacity: .5; }
.competitions-empty p { font-size: 1rem; }

/* ============================================================
   DIFFERENTIALS
   ============================================================ */
.differentials {
  padding: 6rem 0;
  background: var(--primary-900);
  position: relative;
  overflow: hidden;
}
.differentials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.differentials .section-label { color: var(--accent-400); }
.differentials .section-label::before { background: var(--accent-400); }
.differentials .section-title { color: var(--white); }
.differentials .section-subtitle { color: rgba(255,255,255,.55); }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.diff-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--t-base);
}
.diff-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(201,162,39,.3);
  transform: translateY(-3px);
}
.diff-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(201,162,39,.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-400);
}
.diff-icon svg { width: 26px; height: 26px; }
.diff-card h4 { color: var(--white); margin-bottom: .5rem; font-size: 1.0625rem; }
.diff-card p { color: rgba(255,255,255,.5); font-size: .9rem; margin: 0; line-height: 1.6; }

/* ============================================================
   MUNICIPALITIES (Coverage)
   ============================================================ */
.coverage { padding: 5rem 0; background: var(--gray-50); }
.coverage-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.coverage-map {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  min-height: 380px;
}
.coverage-map iframe {
  width: 100%;
  min-height: 380px;
  border: none;
  display: block;
}
.states-list { display: flex; flex-direction: column; gap: 1.5rem; }
.state-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.state-flag {
  width: 78px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.state-flag img { width: 100%; height: 100%; display: block; object-fit: cover; }
.state-info h4 { font-size: 1rem; color: var(--gray-900); margin-bottom: .25rem; }
.state-info p { font-size: .875rem; color: var(--gray-500); margin: 0; }

/* ============================================================
   CONTACT SECTION (on index)
   ============================================================ */
.contact-section { padding: 6rem 0; background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-info { }
.contact-info-items { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { color: var(--primary-600); }
.contact-info-label { font-size: .8125rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.contact-info-value { font-size: .9375rem; color: var(--gray-800); font-weight: 500; line-height: 1.5; }
.contact-form-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .375rem;
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-800);
  font-size: .9375rem;
  transition: all var(--t-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(59,111,212,.12);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--gray-900);
  padding: 4rem 0 0;
  border-top: 1px solid rgba(255,255,255,.04);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.footer-logo-img {
  height: 46px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: .25rem;
}
.footer-brand p {
  font-size: .9rem;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: .5rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
  color: rgba(255,255,255,.5);
}
.social-link:hover { background: rgba(255,255,255,.14); color: var(--white); }
.social-link svg { width: 16px; height: 16px; }
.footer-col h5 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .625rem; }
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.45);
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: .375rem;
}
.footer-links a:hover { color: rgba(255,255,255,.85); }
.footer-contact-items { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .75rem; }
.footer-contact-item svg { color: var(--accent-500); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: .875rem; color: rgba(255,255,255,.45); line-height: 1.6; }
.footer-newsletter { }
.footer-newsletter-desc { font-size: .875rem; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-input {
  flex: 1;
  padding: .625rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-size: .875rem;
  outline: none;
  transition: border-color var(--t-fast);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-input:focus { border-color: rgba(255,255,255,.25); }
.newsletter-btn {
  padding: .625rem 1rem;
  background: var(--accent-500);
  color: var(--primary-900);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .875rem;
  transition: all var(--t-fast);
  border: none;
  cursor: pointer;
}
.newsletter-btn:hover { background: var(--accent-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-copy { font-size: .875rem; color: rgba(255,255,255,.3); }
.footer-copy a { color: rgba(255,255,255,.45); text-decoration: underline; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .875rem; color: rgba(255,255,255,.3); transition: color var(--t-fast); }
.footer-legal a:hover { color: rgba(255,255,255,.6); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--primary-900);
  padding: calc(var(--nav-h) + 3rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero-content { position: relative; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.4); transition: color var(--t-fast); }
.breadcrumb a:hover { color: rgba(255,255,255,.7); }
.breadcrumb span { color: rgba(255,255,255,.25); }
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero .subtitle { font-size: 1.0625rem; color: rgba(255,255,255,.55); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--primary-700);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all var(--t-base);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  z-index: 500;
}
.back-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-top:hover { background: var(--primary-600); transform: translateY(-2px); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.85); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-in.delay-1 { transition-delay: .1s; }
.animate-in.delay-2 { transition-delay: .2s; }
.animate-in.delay-3 { transition-delay: .3s; }
.animate-in.delay-4 { transition-delay: .4s; }
.animate-in.delay-5 { transition-delay: .5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ---- Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { max-width: 500px; }
  .about-badge-floating { right: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-content { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Sections — reduz padding vertical */
  .about, .services, .competitions, .differentials, .coverage, .contact-section { padding: 3rem 0; }
  .stats-strip { padding: 2rem 0; }
  .page-hero { padding: 4.5rem 0 2.5rem; }

  /* Hero */
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3rem; }
  .hero-content { max-width: 100%; }
  .hero-badge { font-size: .75rem; padding: .3rem .85rem; }
  .hero-desc { font-size: 1rem; margin-bottom: 2rem; }
  .hero-actions { gap: .75rem; }
  .hero-actions .btn { padding: .75rem 1.5rem; }
  .hero-stats { gap: 1.5rem; padding-top: 1.5rem; }
  .hero-stat-number { font-size: 1.625rem; }

  /* About */
  .about-grid { gap: 2rem; }
  .about-image-main { aspect-ratio: 16/9; }
  .about-logo-img { width: 70%; max-width: 260px; }
  .about-badge-floating { bottom: -1rem; right: 0; }

  /* Stats strip */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stats-number { font-size: 1.75rem; }

  /* Services — 2 colunas centralizadas no mobile */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: .875rem; }
  .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
  }
  .service-card .service-icon { margin-bottom: .875rem; }
  .service-card h4 { font-size: .9375rem; margin-bottom: .375rem; }
  .service-card p { font-size: .8125rem; }

  /* Competitions */
  .competitions-grid { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: .25rem; }
  .tab-btn { white-space: nowrap; padding: .625rem 1rem; font-size: .875rem; flex-shrink: 0; }

  /* Differentials — 2 colunas compactas */
  .diff-grid { grid-template-columns: repeat(2, 1fr); gap: .875rem; }
  .diff-card { padding: 1.25rem 1rem; }
  .diff-icon { width: 44px; height: 44px; margin-bottom: 1rem; }
  .diff-icon svg { width: 22px; height: 22px; }
  .diff-card h4 { font-size: .9375rem; }
  .diff-card p { font-size: .8125rem; }

  /* Coverage */
  .coverage-map { min-height: 260px; }
  .coverage-map iframe { min-height: 260px; }
  .states-list { gap: 1rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }

  /* Section headers */
  .section-subtitle { font-size: 1rem; }
}

/* ---- Small mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .875rem; }

  /* Hero */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1rem; }
  .hero-stat-number { font-size: 1.375rem; }
  .hero-stat-label { font-size: .75rem; }

  /* Differentials — 1 coluna em telas muito pequenas */
  .diff-grid { grid-template-columns: 1fr; }

  /* Serviços — mantém 2 colunas centralizadas */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { padding: 1rem .75rem; }
  .service-icon { width: 46px; height: 46px; }
  .service-icon svg { width: 22px; height: 22px; }

  /* Tabs */
  .tab-btn { padding: .5rem .875rem; font-size: .8125rem; }

  /* Competition cards */
  .competition-card { padding: 1rem; }
  .competition-card-mun { font-size: 1rem; }
}
