/* Reciclagem Lunardi — Custom Styles */

:root {
  --primary: #2ba84a;
  --primary-dark: #1f7a36;
  --primary-light: #e8f5e9;
  --text: #252525;
  --text-muted: #666;
  --bg: #fff;
  --topbar-bg: #333;
  --footer-bg: #171717;
  --border: #e0e0e0;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ─── TOP BAR ─── */
#topbar {
  background: var(--topbar-bg);
  color: #aaa;
  font-size: 13px;
  padding: 6px 0;
}
#topbar .topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
#topbar a { color: #aaa; }
#topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-contact span { display: flex; align-items: center; gap: 5px; }
.topbar-social a { color: #aaa; font-size: 16px; }
.topbar-social a:hover { color: #25d366; }
.topbar-social .phone-link { font-size: 13px; margin-left: 12px; }
.topbar-social .phone-link:hover { color: #fff; }

/* ─── HEADER ─── */
#site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-logo img { height: 45px; width: auto; }

/* ─── NAV DESKTOP ─── */
#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
#main-nav ul li { position: relative; }
#main-nav ul li a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
#main-nav ul li a:hover,
#main-nav ul li.active > a {
  color: var(--primary);
  background: var(--primary-light);
}
#main-nav ul li.active > a {
  font-weight: 600;
}

/* Dropdown */
#main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 6px 0;
  z-index: 200;
}
#main-nav li:hover > .dropdown { display: block; }
#main-nav .dropdown li a {
  padding: 8px 16px;
  border-radius: 0;
  font-size: 13px;
}
#main-nav .dropdown li a:hover { background: var(--primary-light); }
.nav-arrow { font-size: 10px; margin-left: 4px; }

/* ─── MOBILE MENU BUTTON ─── */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
#menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
#menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; }
#menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE NAV ─── */
#mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
}
#mobile-nav.open { display: block; }
#mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#mobile-nav ul li a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
}
#mobile-nav ul li a:hover { color: var(--primary); }
#mobile-nav .sub-menu { padding-left: 16px; }
#mobile-nav .sub-menu li a { font-size: 14px; color: var(--text-muted); }

/* ─── HERO (página inicial) ─── */
.site-hero {
  background: #f9fafb;
  padding: 56px 20px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.site-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin: 0 auto 14px;
  max-width: 680px;
  line-height: 1.25;
}
.site-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary-rl {
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary-rl:hover { background: var(--primary-dark); color: #fff; }
.btn-outline-rl {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline-rl:hover { background: var(--primary); color: #fff; }

/* ─── BANNER SECTION ─── */
.banner-section {
  padding: 32px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.banner-section img {
  border-radius: 8px;
  margin-bottom: 16px;
  display: block;
  width: 100%;
}

/* ─── SERVICE CARDS ─── */
.services-section {
  background: #f9fafb;
  padding: 48px 20px;
}
.services-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: var(--text);
}
.service-card:hover {
  box-shadow: 0 4px 16px rgba(43,168,74,0.12);
  border-color: var(--primary);
  color: var(--text);
}
.service-icon { font-size: 36px; flex-shrink: 0; }
.service-card strong { font-size: 15px; font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; }
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ─── VALORES (Preserve!, Recicle!, Renove!) ─── */
.valores-section {
  padding: 48px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.valor-card {
  background: var(--primary-light);
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}
.valor-icon { font-size: 48px; margin-bottom: 16px; }
.valor-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.valor-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ─── PROCESSO DE RECICLAGEM ─── */
.processo-section {
  background: #f9fafb;
  padding: 56px 20px;
}
.processo-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 40px;
}
.processo-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 1000px;
  margin: 0 auto;
}
.processo-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 16px 20px;
  text-align: center;
  flex: 1;
  max-width: 210px;
  position: relative;
}
.processo-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.processo-icon { font-size: 38px; margin: 4px 0 12px; }
.processo-step strong { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.processo-step p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.processo-arrow {
  font-size: 24px;
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
  transition: transform 0.3s;
}

/* ─── SCROLL ANIMATION ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll { opacity: 0; }
.animate-on-scroll.is-visible { animation: fadeInUp 0.55s ease forwards; }

/* ─── PAGE TITLE ─── */
.page-title-bar {
  background: var(--primary);
  color: #fff;
  padding: 28px 20px;
}
.page-title-bar .inner {
  max-width: 1100px;
  margin: 0 auto;
}
.page-title-bar h1 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 6px;
}
.page-title-bar .breadcrumb-rl {
  font-size: 13px;
  opacity: 0.85;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.page-title-bar .breadcrumb-rl a { color: #fff; }

/* ─── CONTENT AREA ─── */
.content-area {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}
.content-area h2 { font-size: 20px; font-weight: 600; color: var(--text); margin: 28px 0 12px; }
.content-area p { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 16px; }

/* ─── CTA STRIP ─── */
.cta-strip {
  background: var(--primary);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
.cta-strip h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.cta-strip p { font-size: 15px; opacity: 0.9; margin-bottom: 20px; }
.btn-white {
  background: #fff;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  transition: opacity 0.2s;
}
.btn-white:hover { opacity: 0.9; color: var(--primary); }

/* ─── FOOTER ─── */
#site-footer {
  background: var(--footer-bg);
  color: #aaa;
  padding: 20px;
  font-size: 13px;
  text-align: center;
  line-height: 1.7;
}
#site-footer a { color: #aaa; }
#site-footer a:hover { color: #fff; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  #main-nav, .topbar-contact { display: none; }
  #menu-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .header-inner { height: 60px; }
  .site-logo img { height: 36px; }
  .valores-grid { grid-template-columns: 1fr; }
  .processo-steps { flex-direction: column; align-items: stretch; }
  .processo-step { max-width: 100%; }
  .processo-arrow { transform: rotate(90deg); align-self: center; }
}
@media (max-width: 480px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .hero-btns { flex-direction: column; align-items: center; }
}
