/* ===== GRUPO SADA - Site Portfólio ===== */
/* Design: Modernismo Corporativo Sustentável */

:root {
  --primary: #0a7a35;
  --primary-dark: #055923;
  --primary-light: #e8f5ee;
  --fg: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --secondary: #f3f6f4;
  --accent: #f0fdf4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo img { height: 48px; width: auto; }
nav.main { display: none; gap: 28px; font-size: 14px; font-weight: 500; }
nav.main a { color: #444; transition: color .2s var(--ease-out); position: relative; }
nav.main a:hover { color: var(--primary); }
nav.main a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s var(--ease-out);
}
nav.main a:hover::after { width: 100%; }

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all .3s var(--ease-out);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
}
.mobile-nav.active { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: #444;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--primary); }

@media(min-width:1024px) {
  nav.main { display: flex; }
  .mobile-toggle { display: none; }
}

/* ===== HERO ===== */
.hero {
  padding: 60px 0 40px;
  background: var(--bg);
}
@media(min-width:1024px) {
  .hero { padding: 80px 0 60px; }
}
.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--fg);
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
}
.hero-img-full {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.hero-img-full img {
  width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s var(--ease-out);
  border: none;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
@media(min-width:1024px) { section { padding: 100px 0; } }

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(10,122,53,.3);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 700px;
  margin-bottom: 48px;
}
.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media(min-width:640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  transition: all .3s var(--ease-out);
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card .icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card .icon svg { width: 24px; height: 24px; color: var(--primary); }
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ===== COMPANIES / LOGOS ===== */
.bg-alt { background: var(--secondary); }

.logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media(min-width:640px) { .logos-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width:1024px) { .logos-grid { grid-template-columns: repeat(4, 1fr); } }

.logo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all .3s var(--ease-out);
  min-height: 140px;
}
.logo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.logo-card img { max-height: 60px; max-width: 100%; object-fit: contain; }
.logo-card span { font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }

/* ===== SUSTAINABILITY ===== */
.sustain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media(min-width:1024px) { .sustain-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }

.sustain-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sustain-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.sustain-list { list-style: none; }
.sustain-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.sustain-list li:last-child { border-bottom: none; }
.sustain-list .icon-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sustain-list .icon-circle svg { width: 20px; height: 20px; color: var(--primary); }
.sustain-list h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.sustain-list p { font-size: 14px; color: var(--muted); }

/* ===== NEWS / BLOG ===== */
.news-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media(min-width:640px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all .3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.news-card .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .thumb .category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,.95);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.news-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.news-card .excerpt { font-size: 14px; color: var(--muted); margin-bottom: 16px; flex: 1; }
.news-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.news-card .read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform .2s var(--ease-out);
}
.news-card:hover .read-more { transform: translateX(4px); }

/* ===== CONTACT ===== */
.contact-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
}
.contact-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact-box .email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: all .2s var(--ease-out);
  margin-top: 24px;
}
.contact-box .email-link:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }
.contact-box .email-link:active { transform: scale(0.97); }
.contact-box .email-link svg { width: 20px; height: 20px; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  background: var(--secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0;
}
@media(min-width:768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand img { height: 40px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 280px; }

footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
footer ul li { margin-bottom: 8px; }
footer ul a { font-size: 14px; color: var(--muted); transition: color .2s; }
footer ul a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ===== BLOG PAGE ===== */
.blog-hero {
  padding: 60px 0 40px;
  background: var(--secondary);
}
.blog-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
}
.blog-hero p { color: var(--muted); font-size: 17px; }

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-top: 32px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s var(--ease-out);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.blog-list {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media(min-width:640px) { .blog-list { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px) { .blog-list { grid-template-columns: repeat(3, 1fr); } }

/* Article page */
.article-header {
  padding: 60px 0 40px;
  background: var(--secondary);
}
.article-header .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.article-header .breadcrumb a:hover { color: var(--primary); }
.article-header .breadcrumb .sep { opacity: .5; }
.article-header h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 800px;
}
.article-header .meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}
.article-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.75;
  color: #333;
}
.article-content h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
}
.article-content img {
  border-radius: 12px;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp .6s var(--ease-out) forwards;
  opacity: 0;
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ===== RESPONSIVE ===== */
@media(max-width:640px) {
  .hero { padding: 48px 0; }
  section { padding: 60px 0; }
  .btn { padding: 12px 24px; font-size: 14px; }
}
