/* ════════════════════════════════════════════════════════════════
   Resolve Energia — Site Institucional
   Paleta original: Gold #ffc100, Green #7ac517, Blue #2aace2
   ════════════════════════════════════════════════════════════════ */

:root {
  --gold: #ffc100;
  --gold-dark: #e6a800;
  --green: #7ac517;
  --green-dark: #6aa814;
  --blue: #2aace2;
  --blue-dark: #1d8fbf;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --gray: #f4f5f7;
  --gray-2: #e8e9ed;
  --text: #333333;
  --text-muted: #777777;
  --white: #ffffff;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --max-w: 1200px;
  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-heading: 'Poppins', var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ═══ HEADER ═══ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}
.logo img { height: 48px; width: auto; }

.main-nav ul { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  font-weight: 600; font-size: 15px; color: var(--text);
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transition: transform .2s;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-social { display: flex; gap: 10px; }
.header-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray); color: var(--text);
  transition: background .2s, color .2s;
}
.header-social a:hover { background: var(--gold); color: var(--white); }
.header-social svg { width: 16px; height: 16px; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span {
  display: block; width: 24px; height: 3px; background: var(--dark);
  border-radius: 2px; transition: .3s;
}
.mobile-toggle span + span { margin-top: 5px; }

/* ═══ HERO ═══ */
.hero {
  margin-top: 72px;
  position: relative;
  min-height: 520px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(26,26,46,0.85), rgba(22,33,62,0.7)),
    url('assets/img/projetos/projeto-01.jpg') center/cover no-repeat;
  color: var(--white);
}
.hero-inner { text-align: left; max-width: 600px; }
.hero h1 {
  font-family: var(--font-heading);
  font-size: 42px; font-weight: 700; line-height: 1.2;
  margin-bottom: 16px;
}
.hero p { font-size: 18px; opacity: 0.92; margin-bottom: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; transition: all .2s;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,193,0,0.4); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* ═══ SECTION ═══ */
section { padding: 72px 0; }
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title h2 {
  font-family: var(--font-heading);
  font-size: 32px; font-weight: 700; color: var(--dark);
  margin-bottom: 8px;
}
.section-title h2 span { color: var(--gold); }
.section-title p { color: var(--text-muted); font-size: 16px; }

/* ═══ SERVIÇOS ═══ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-icon {
  height: 120px; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 48px;
}
.service-card-icon.gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.service-card-icon.green { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.service-card-icon.blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.service-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 {
  font-family: var(--font-heading);
  font-size: 22px; margin-bottom: 10px; color: var(--dark);
}
.service-card-body p { color: var(--text-muted); margin-bottom: 20px; flex: 1; }

/* ═══ VÍDEO ═══ */
.video-section { background: var(--dark); }
.video-section .section-title h2 { color: var(--white); }
.video-wrap {
  position: relative; max-width: 900px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ═══ PROJETOS (SLIDER) ═══ */
.projects-section { background: var(--gray); }
.slider {
  position: relative; max-width: 100%; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.slider-track {
  display: flex; transition: transform .5s ease;
}
.slide {
  min-width: 100%; height: 500px;
  background-size: cover; background-position: center;
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.85); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; z-index: 10; transition: background .2s;
}
.slider-btn:hover { background: var(--white); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
.slider-dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 20px;
}
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; background: var(--gray-2); cursor: pointer;
  padding: 0; transition: background .2s;
}
.slider-dots button.active { background: var(--gold); width: 30px; border-radius: 5px; }

/* ═══ PARCEIROS ═══ */
.partners-section { background: var(--white); }
.partners-grid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 40px;
}
.partners-grid img {
  height: 60px; width: auto; opacity: 0.7;
  filter: grayscale(100%); transition: opacity .2s, filter .2s;
}
.partners-grid img:hover { opacity: 1; filter: grayscale(0); }

/* ═══ MAPA / CONTATO ═══ */
.contact-section { background: var(--gray); }
.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-top: 24px;
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--dark); color: var(--white);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
.footer-col h2 {
  font-size: 18px; margin-bottom: 14px;
  color: var(--gold);
}
.footer-col p, .footer-col li { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 6px; }
.footer-col a:hover { color: var(--gold); }
.footer-col img { height: 44px; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ═══ WHATSAPP FLOAT ═══ */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ═══ SOBRE PAGE ═══ */
.page-hero {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: var(--white); text-align: center;
  padding: 60px 0;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 36px; margin-bottom: 8px;
}
.page-hero h1 span { color: var(--gold); }

.mvv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.mvv-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px; text-align: center;
  border-top: 4px solid var(--gold);
}
.mvv-card.green-top { border-color: var(--green); }
.mvv-card.blue-top { border-color: var(--blue); }
.mvv-card h3 {
  font-family: var(--font-heading);
  font-size: 20px; margin-bottom: 12px; color: var(--dark);
}
.mvv-card p { color: var(--text-muted); }

.about-carousel {
  max-width: 800px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-carousel .slide { height: 400px; }

.values-list {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 16px;
}
.value-tag {
  background: var(--gold); color: var(--white);
  padding: 8px 20px; border-radius: 50px;
  font-weight: 600; font-size: 14px;
}

/* ═══ BLOG PAGE ═══ */
.blog-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px;
}
.blog-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.blog-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-img { height: 180px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-cat {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
  background: var(--gold); color: var(--white);
  text-transform: uppercase; margin-bottom: 8px;
}
.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 16px; margin-bottom: 8px; color: var(--dark);
  line-height: 1.4;
}
.blog-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.blog-card-meta { font-size: 12px; color: var(--text-muted); }

.blog-sidebar h2 {
  font-family: var(--font-heading);
  font-size: 18px; color: var(--dark); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--gold);
}
.blog-sidebar ul { margin-bottom: 32px; }
.blog-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--gray-2); font-size: 14px; }
.blog-sidebar a:hover { color: var(--gold-dark); }

.pagination {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 32px;
}
.pagination a {
  padding: 8px 14px; border-radius: 8px;
  background: var(--gray); font-weight: 600; font-size: 14px;
}
.pagination a:hover, .pagination a.active { background: var(--gold); color: var(--white); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .main-nav, .header-social { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    box-shadow: var(--shadow); padding: 16px 20px; gap: 0;
  }
  .main-nav.open li { width: 100%; }
  .main-nav.open a { display: block; padding: 12px 0; border-bottom: 1px solid var(--gray-2); }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .section-title h2 { font-size: 24px; }
  section { padding: 48px 0; }
  .slide { height: 300px; }
  .about-carousel .slide { height: 250px; }
}
