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

:root {
  --primary-900: #0f172a;
  --primary-800: #1e293b;
  --primary-700: #334155;
  --primary-500: #0066FF;
  --primary-100: #e0f2fe;
  --success: #10B981;
  --success-bg: #d1fae5;
  --warning: #F59E0B;
  --warning-bg: #fef3c7;
  --danger: #EF4444;
  --danger-bg: #fee2e2;
  --info: #8B5CF6;
  --info-bg: #ede9fe;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-color: 0 20px 40px -10px rgba(0, 102, 255, 0.25);
  
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --spacing-container: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Page Transitions */
@view-transition { navigation: auto; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 102, 255, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 50%, rgba(16, 185, 129, 0.04) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(245, 158, 11, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  animation: pageFadeIn 0.4s ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }
.reveal.left { transform: translateX(-40px); }
.reveal.left.active { transform: translateX(0); }
.reveal.right { transform: translateX(40px); }
.reveal.right.active { transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Header */
site-header {
  position: sticky; top: 0; z-index: 100; display: block;
}
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px var(--spacing-container);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: linear-gradient(135deg, #0066FF, #00C6FF);
  color: white; font-weight: 800; font-size: 1.1rem;
  border-radius: var(--radius-md); box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 0.9rem; color: var(--primary-900); line-height: 1.2; }
.brand-text span { font-size: 0.75rem; color: var(--text-muted); }

/* Standard Novopac-like Menu */
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 20px; align-items: center; }
.main-nav a {
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-900);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary-500); }
.main-nav a::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
  background: var(--primary-500); transition: width 0.3s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-alert {
  background: var(--danger); color: white; padding: 8px 16px; border-radius: 99px;
  font-weight: 600; font-size: 0.85rem; display: none; align-items: center; gap: 6px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.btn-alert:hover { background: #dc2626; transform: translateY(-2px); }

/* Mobile Menu */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: var(--primary-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu {
  position: fixed;
  top: 69px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-150%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 99;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu a {
  font-family: 'Anton', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-900);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}
.mobile-menu a:last-child {
  border-bottom: none;
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--primary-500);
}

/* Hero Section */
.hero {
  position: relative; padding: 40px var(--spacing-container) 60px;
  background: linear-gradient(145deg, var(--primary-900) 0%, #0a1f3c 100%);
  display: flex; flex-direction: column; gap: 32px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -10%; right: -30%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.15) 0%, rgba(0,0,0,0) 65%);
  border-radius: 50%; pointer-events: none;
}
.hero-content { width: 100%; position: relative; z-index: 10; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 99px; color: #93c5fd; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero h1 {
  font-size: 2.2rem; font-weight: 800; color: white; line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -0.5px;
}
.hero-text { font-size: 1rem; color: #cbd5e1; margin-bottom: 24px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-primary, .btn-secondary {
  width: 100%; justify-content: center; padding: 14px 20px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--primary-500); color: white; box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); color: white; border: 1px solid rgba(255, 255, 255, 0.2); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }

/* Navigation Grid for Home Page */
.nav-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
.nav-card {
  background: white; border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px; transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.nav-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary-500); }
.nav-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary-500); opacity: 0; transition: opacity 0.3s; }
.nav-card:hover::before { opacity: 1; }
.nav-card i { font-size: 2.5rem; color: var(--primary-500); }
.nav-card h3 { font-family: 'Anton', sans-serif; font-size: 1.5rem; color: var(--primary-900); letter-spacing: 0.5px; }
.nav-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Main Layout */
.content-shell { display: flex; flex-direction: column; gap: 24px; padding: 24px var(--spacing-container); flex: 1; }
.panel { background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.panel.colored-blue { background: linear-gradient(to bottom right, #ffffff, #e0f2fe); border-color: #bae6fd; }
.panel.colored-green { background: linear-gradient(to bottom right, #ffffff, #d1fae5); border-color: #a7f3d0; }
.panel.colored-amber { background: linear-gradient(to bottom right, #ffffff, #fef3c7); border-color: #fde68a; }
.panel.colored-violet { background: linear-gradient(to bottom right, #ffffff, #ede9fe); border-color: #ddd6fe; }

.section-heading { margin-bottom: 20px; }
.section-heading .eyebrow {
  color: var(--primary-500); background: var(--primary-100); border: none; margin-bottom: 8px;
  display: inline-block; padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: 0.8rem;
}
.section-heading h2 { font-size: 1.6rem; font-weight: 800; color: var(--primary-900); }

/* Common components */
.metric-strip { display: grid; grid-template-columns: 1fr; gap: 16px; }
.metric-card { background: var(--bg-card); padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.metric-card i { font-size: 2rem; color: var(--primary-500); margin-bottom: 8px; }
.metric-card span { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
.metric-card strong { font-size: 2rem; font-weight: 800; color: var(--primary-900); line-height: 1; margin-bottom: 4px; }

/* Status tags */
.status { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.status.in-progress { background: var(--warning-bg); color: #b45309; }
.status.planned { background: var(--info-bg); color: #6d28d9; }
.status.done { background: var(--success-bg); color: #047857; }

/* FAQ */
.faq-section { padding: 0 0 40px; }
.faq-panel { background: white; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
details { background: var(--bg-main); border-radius: var(--radius-md); margin-bottom: 12px; border: 1px solid var(--border); overflow: hidden; }
summary { padding: 16px; font-weight: 600; font-size: 0.95rem; color: var(--primary-900); cursor: pointer; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '\f107'; font-family: 'Phosphor'; color: var(--primary-500); transition: transform 0.3s; }
details[open] summary::after { transform: rotate(180deg); }
details p { padding: 0 16px 16px; color: var(--text-muted); font-size: 0.9rem; }

/* Footer */
.site-footer {
  background: var(--primary-900); color: white; padding: 40px var(--spacing-container);
  text-align: center; border-top: 4px solid var(--primary-500); margin-top: auto;
}
.site-footer .footer-content { display: flex; flex-direction: column; align-items: center; gap: 8px; }

@media (min-width: 768px) {
  :root { --spacing-container: 32px; }
  .hero { padding: 60px var(--spacing-container) 80px; }
  .hero h1 { font-size: 3rem; }
  .hero-actions { flex-direction: row; gap: 16px; }
  .btn-primary, .btn-secondary { width: auto; }
  .nav-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  :root { --spacing-container: 5%; --radius-lg: 24px; --radius-md: 16px; }
  .main-nav { display: flex; gap: 32px; }
  .btn-alert { display: flex; }
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none; }
  .hero { flex-direction: row; align-items: center; justify-content: space-between; padding: 100px var(--spacing-container) 140px; min-height: 60vh; }
  .hero-content { flex: 1; max-width: 700px; }
  .hero h1 { font-family: 'Anton', sans-serif; font-size: 4.5rem; font-weight: 400; line-height: 1.05; letter-spacing: 1px; margin-bottom: 24px; text-transform: uppercase; }
  .hero-text { font-size: 1.25rem; max-width: 600px; margin-bottom: 40px; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { padding: 18px 32px; font-size: 1.1rem; border-radius: 99px; }
  
  .nav-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; max-width: 1600px; margin-left: auto; margin-right: auto; }
  .nav-card { padding: 40px; }
  
  .content-shell { max-width: 1600px; margin: 0 auto; padding: 80px var(--spacing-container); gap: 40px; }
  .panel { padding: 40px; }
  .section-heading h2 { font-family: 'Anton', sans-serif; font-size: 2.8rem; font-weight: 400; letter-spacing: 1px; margin-bottom: 24px; text-transform: uppercase; }
  
  .metric-strip { gap: 24px; }
  .metric-card { padding: 40px 30px; text-align: center; }
  .metric-card i { font-size: 2.5rem; margin-bottom: 16px; }
  .metric-card strong { font-size: 2.8rem; font-weight: 900; }
  
  .faq-section { max-width: 1000px; margin: 0 auto; padding-bottom: 100px; }
  .faq-panel { padding: 60px; }
  summary { padding: 24px; font-size: 1.1rem; }
  details p { padding: 0 24px 24px; font-size: 1.05rem; }
}

.google-map-iframe { width: 100%; height: 800px; border: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-top: 32px; }


/* Social Links no Footer */
.social-link {
  font-size: 1.6rem;
  color: rgba(255,255,255,0.8);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.social-link:hover {
  color: white;
  background: var(--primary-500);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Custom Accordion for Lists */
.custom-accordion {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 32px;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  font-family: inherit;
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 700;
  outline: none;
  border: none;
  background: transparent;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.custom-accordion.open .accordion-content {
  grid-template-rows: 1fr;
}
.accordion-inner {
  overflow: hidden;
  padding: 0 24px;
}
.custom-accordion.open .accordion-inner {
  padding-bottom: 24px;
}

/* Toggle List Button */
.btn-toggle-list {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-500);
  background: var(--primary-100);
  padding: 8px 16px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.accordion-header:hover .btn-toggle-list {
  background: var(--primary-500);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}
.btn-toggle-list i {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.custom-accordion.open .btn-toggle-list i {
  transform: rotate(180deg);
}
.custom-accordion.open .btn-toggle-list {
  background: var(--primary-100);
  color: var(--primary-500);
  box-shadow: none;
}

/* Notícias Feed */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.noticia-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.noticia-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.noticia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-card:hover .noticia-img {
    transform: scale(1.05);
}

.noticia-conteudo {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-data {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.noticia-titulo {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-link {
    margin-top: auto;
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: color 0.2s;
}

.noticia-link:hover {
    color: var(--primary-700);
    text-decoration: underline;
}
