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

:root {
  --color-primary-bg: #0B132B;
  --color-navy: #1C2541;
  --color-navy-light: #2A3B5C;
  --color-accent-blue: #3A506B;
  
  --color-gold: #F4C430;
  --color-gold-hover: #E5B21D;
  --color-gold-dark: #C9940F;
  --color-gold-glow: rgba(244, 196, 48, 0.25);
  
  --color-light-bg: #F8FAFC;
  --color-card-bg: #FFFFFF;
  --color-text-dark: #0F172A;
  --color-text-muted: #64748B;
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;

  --font-primary: 'Outfit', 'Poppins', sans-serif;
  --font-accent: 'Alex Brush', cursive;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 20px rgba(244, 196, 48, 0.2);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Typography & Helpers */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--color-text-dark); }
.text-muted { color: var(--color-text-muted); }
.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-navy { color: var(--color-navy); }

.bg-dark { background-color: var(--color-primary-bg); color: var(--color-white); }
.bg-navy { background-color: var(--color-navy); color: var(--color-white); }
.bg-light { background-color: var(--color-light-bg); }
.bg-gold { background-color: var(--color-gold); color: var(--color-primary-bg); }
.bg-white { background-color: var(--color-white); }

.cursive-text { font-family: var(--font-accent); font-size: 32px; font-weight: 400; }

/* Layout Utilities */
.container { width: 90%; max-width: 1240px; margin: 0 auto; }
.section { padding: 90px 0; position: relative; }
.text-center { text-align: center; }
.shadow { box-shadow: var(--shadow-md); }
.rounded-img { border-radius: var(--radius); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; border-radius: var(--radius-sm); font-weight: 600;
  cursor: pointer; border: none; font-size: 15px; font-family: var(--font-primary);
  transition: var(--transition); text-align: center; position: relative;
  overflow: hidden; letter-spacing: 0.3px;
}
.btn-block { display: flex; width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-hover) 100%);
  color: var(--color-primary-bg); box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}
.btn-gold:hover {
  transform: translateY(-3px); box-shadow: 0 8px 25px rgba(244, 196, 48, 0.45);
  background: linear-gradient(135deg, #FAD052 0%, var(--color-gold) 100%);
}
.btn-outline-white {
  background-color: transparent; color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover {
  background-color: var(--color-white); color: var(--color-primary-bg);
  border-color: var(--color-white); transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}
.btn-navy {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary-bg) 100%);
  color: var(--color-white); box-shadow: var(--shadow-md);
}
.btn-navy:hover {
  background: linear-gradient(135deg, var(--color-navy-light) 0%, var(--color-navy) 100%);
  transform: translateY(-3px); box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3);
}

/* Header & Glassmorphism Navigation */
header {
  background: rgba(11, 19, 43, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0; transition: var(--transition);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; transition: var(--transition); }
.logo:hover { opacity: 0.9; transform: scale(1.02); }
.site-logo { 
  max-height: 52px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); transition: var(--transition);
}

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-link {
  color: rgba(255, 255, 255, 0.85); font-weight: 500; font-size: 15px;
  position: relative; padding: 4px 0; letter-spacing: 0.2px;
}
.nav-link::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 0;
  background-color: var(--color-gold); transition: var(--transition);
  border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--color-gold); }
.hamburger { display: none; background: none; border: none; color: var(--color-white); font-size: 26px; cursor: pointer; }

/* Dividers */
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--color-gold), transparent); width: 100%; opacity: 0.5; }

/* Hero Section */
.hero-section {
  background-image: url('../imagens/Fórum da cidade de Passa Tempo/1.jpeg');
  background-size: cover; background-position: center; position: relative;
  padding: 160px 0 130px; overflow: hidden;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(11, 19, 43, 0.92) 0%, rgba(28, 37, 65, 0.82) 100%);
}
.page-hero {
  background-size: cover; background-position: center; position: relative;
}
.hero-content { position: relative; z-index: 10; max-width: 820px; }
.hero-label {
  display: inline-block; font-size: 12px; color: var(--color-gold);
  letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700;
  padding: 6px 16px; background: rgba(244, 196, 48, 0.1);
  border: 1px solid rgba(244, 196, 48, 0.25); border-radius: 30px;
  margin-bottom: 24px; backdrop-filter: blur(4px);
}
.hero-title {
  font-size: 54px; color: var(--color-white); font-weight: 800;
  margin-bottom: 22px; line-height: 1.15; letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: 19px; color: rgba(255, 255, 255, 0.82); margin-bottom: 30px;
  font-weight: 400; line-height: 1.6;
}
.hero-cursive {
  font-family: var(--font-accent); font-size: 38px; color: var(--color-gold);
  margin-bottom: 40px; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-ctas { display: flex; gap: 20px; flex-wrap: wrap; }

/* Numbers Bar Ribbon */
.numbers-bar {
  padding: 35px 0; background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.number-item {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px;
  border-radius: var(--radius); transition: var(--transition);
}
.number-item:hover { background: var(--color-light-bg); transform: translateY(-2px); }
.number-icon { font-size: 36px; color: var(--color-gold-dark); flex-shrink: 0; }
.number-text strong { display: block; font-size: 22px; color: var(--color-navy); line-height: 1.2; font-weight: 800; }
.number-text span { font-size: 13px; color: var(--color-text-muted); font-weight: 500; }

/* Section Headers */
.section-header { margin-bottom: 55px; }
.section-label {
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px; color: var(--color-gold-dark);
}
.section-title { font-size: 36px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.3px; }
.section-desc { font-size: 17px; color: var(--color-text-muted); max-width: 640px; margin: 0 auto; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.services-grid-two { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin-left: auto; margin-right: auto; }
.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 24px; border-radius: var(--radius);
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0;
  background: var(--color-gold); transition: var(--transition);
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.08); transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2); border-color: rgba(244, 196, 48, 0.3);
}
.service-card:hover::before { height: 100%; }
.service-icon { font-size: 38px; color: var(--color-gold); margin-bottom: 20px; transition: var(--transition); }
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 { color: var(--color-white); font-size: 19px; margin-bottom: 12px; font-weight: 700; }
.service-card p { color: rgba(255, 255, 255, 0.75); font-size: 14px; line-height: 1.6; }

/* Institutional Clients */
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.client-card {
  background-color: var(--color-white); padding: 42px 30px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
  transition: var(--transition); text-align: center; position: relative;
}
.client-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--color-gold); }
.client-icon { font-size: 48px; margin-bottom: 22px; transition: var(--transition); }
.client-card:hover .client-icon { transform: scale(1.1); }
.client-card h3 { font-size: 21px; color: var(--color-navy); margin-bottom: 12px; font-weight: 700; }
.client-card p { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; }

/* Differentials */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.diff-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  padding: 26px 22px; border-radius: var(--radius); display: flex; gap: 18px;
  align-items: flex-start; transition: var(--transition);
}
.diff-card:hover {
  background: rgba(255,255,255,0.09); transform: translateY(-4px);
  border-color: rgba(244, 196, 48, 0.3);
}
.diff-icon { font-size: 22px; margin-top: 2px; flex-shrink: 0; color: var(--color-gold); }
.diff-content h4 { color: var(--color-white); font-size: 17px; margin-bottom: 4px; font-weight: 700; }
.diff-content p { color: rgba(255,255,255,0.7); font-size: 14px; }

/* Portfolio Preview & Grid */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.portfolio-card {
  background: var(--color-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
  transition: var(--transition); cursor: pointer;
}
.portfolio-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); border-color: var(--color-gold); }
.portfolio-img {
  height: 250px; background-size: cover; background-position: center; position: relative;
  transition: var(--transition-slow); overflow: hidden;
}
.portfolio-card:hover .portfolio-img { transform: scale(1.05); }
.tag {
  position: absolute; top: 14px; left: 14px; padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  z-index: 2; shadow: var(--shadow-sm);
}
.gold-badge { background-color: var(--color-gold); color: var(--color-primary-bg); }
.status-badge {
  position: absolute; bottom: 14px; right: 14px; padding: 5px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 700; z-index: 2; backdrop-filter: blur(4px);
}
.status-concluido { background-color: rgba(11, 19, 43, 0.85); color: var(--color-gold); border: 1px solid rgba(244, 196, 48, 0.4); }
.status-andamento { background-color: rgba(244, 196, 48, 0.9); color: var(--color-primary-bg); }

.portfolio-info { padding: 24px; }
.portfolio-info h3 { font-size: 19px; color: var(--color-navy); margin-bottom: 8px; font-weight: 700; }
.portfolio-info p { margin-bottom: 4px; font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* Final CTA Strip */
.final-cta { padding: 60px 0; background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-hover) 100%); }
.cta-container { display: flex; justify-content: space-between; align-items: center; }
.cta-text h2 { font-size: 30px; margin-bottom: 6px; font-weight: 800; color: var(--color-primary-bg); }
.cta-text p { font-size: 17px; color: rgba(11, 19, 43, 0.85); font-weight: 500; }

/* Sobre Page Specific */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.align-center { align-items: center; }
.history-card {
  padding: 48px; border-radius: var(--radius); background: var(--color-white);
  box-shadow: var(--shadow-md); border-left: 5px solid var(--color-gold);
  font-size: 17px; line-height: 1.8; color: var(--color-text-dark);
}
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mvv-card {
  background: var(--color-navy); padding: 38px 28px; border-radius: var(--radius);
  border-top: 4px solid var(--color-gold); text-align: center; color: var(--color-white);
  transition: var(--transition); box-shadow: var(--shadow-md);
}
.mvv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mvv-icon { font-size: 42px; margin-bottom: 18px; color: var(--color-gold); }
.mvv-card h3 { margin-bottom: 12px; font-size: 20px; color: var(--color-white); font-weight: 700; }
.mvv-card p { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.6; }

/* Serviços Page Specific */
.info-box { padding: 40px; border-radius: var(--radius); background: var(--color-white); box-shadow: var(--shadow-sm); }
.services-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-detail-card {
  padding: 36px 30px; border-radius: var(--radius); background: var(--color-white);
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
  transition: var(--transition); border-bottom: 3px solid transparent;
}
.service-detail-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-bottom-color: var(--color-gold); }
.service-detail-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--color-navy); font-weight: 700; }
.service-detail-card p { color: var(--color-text-muted); font-size: 15px; }

/* Portfolio Page Specific Filters */
.filter-tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-tab {
  background: var(--color-white); border: 1.5px solid var(--color-border); color: var(--color-navy);
  padding: 10px 24px; border-radius: 30px; cursor: pointer; font-weight: 600;
  font-family: var(--font-primary); font-size: 14px; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.filter-tab:hover, .filter-tab.active {
  background: var(--color-navy); color: var(--color-gold); border-color: var(--color-navy);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

/* Contato Page Specific */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--color-navy); font-size: 14px; }
.form-control {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); font-family: var(--font-primary); font-size: 15px;
  transition: var(--transition); background: var(--color-white);
}
.form-control:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 4px var(--color-gold-glow); }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-item i { font-size: 22px; margin-top: 4px; color: var(--color-gold-dark); }

.contact-item a { transition: var(--transition); }
.contact-item a:hover { color: var(--color-gold) !important; }

/* Footer */
footer { padding: 70px 0 24px; background: var(--color-primary-bg); color: var(--color-white); }
.footer-top { padding-top: 10px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col .logo { margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.footer-links a:hover { color: var(--color-gold); transform: translateX(4px); }
.footer-contact p { margin-bottom: 12px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.85); font-size: 14px; }
.footer-contact a { color: rgba(255, 255, 255, 0.85); transition: var(--transition); display: inline-flex; align-items: center; gap: 12px; }
.footer-contact a:hover { color: var(--color-gold); transform: translateX(4px); }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: rgba(255,255,255,0.5); }

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed; width: 56px; height: 56px; bottom: 28px; right: 28px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFF; border-radius: 50px; text-align: center;
  font-size: 28px; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); z-index: 1000;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.12) rotate(5deg); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6); }

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
  .hero-title { font-size: 42px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .clients-grid, .diff-grid, .portfolio-grid, .mvv-grid, .two-col-grid, .services-list-grid { grid-template-columns: 1fr; }
  .cta-container { flex-direction: column; text-align: center; gap: 24px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background-color: var(--color-primary-bg); flex-direction: column;
    justify-content: center; transition: var(--transition); z-index: 999;
  }
  .nav-menu.active { right: 0; }
  .hamburger { display: block; z-index: 1000; }
  .nav-menu .btn { margin-top: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Lightbox Gallery */
.lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(11, 19, 43, 0.95); backdrop-filter: blur(8px);
  z-index: 2000; display: none; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content {
  position: relative; max-width: 90%; max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 100%; max-height: 85vh; border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6); animation: fadeIn 0.3s ease;
}
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  color: var(--color-white); font-size: 36px; cursor: pointer;
  transition: var(--transition); z-index: 2010;
}
.lightbox-close:hover { color: var(--color-gold); transform: scale(1.1); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.85); font-size: 46px; cursor: pointer;
  transition: var(--transition); z-index: 2010; padding: 12px;
  background: none; border: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--color-gold); transform: translateY(-50%) scale(1.2); }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--color-white); font-size: 14px; font-weight: 600;
  background: rgba(11, 19, 43, 0.7); backdrop-filter: blur(6px);
  padding: 6px 18px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.15); z-index: 2010;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-trigger { cursor: pointer; }
.gallery-trigger:hover .portfolio-img { opacity: 0.95; }
