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

:root {
  /* Fonts */
  --font-title: 'Roundo', 'Albert Sans', sans-serif;
  --font-text: 'Albert Sans', sans-serif;

  /* STW Ambiental */
  --amb-dark: #142729;
  --amb-lime: #D0FF71;
  --amb-mint: #27EAA6;

  /* STW Climate */
  --cli-dark: #142729;
  --cli-light: #EBFFF6;
  --cli-petro: #004D43;
  --cli-mint: #27EAA6;

  /* Neutrals & Shared */
  --bg-color: #ffffff;
  --text-main: #142729;
  --text-muted: #556B6D;
  --transition-speed: 0.4s;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-text);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.title-xl {
  font-size: clamp(3rem, 5vw, 5rem);
  letter-spacing: -0.02em;
}

.title-lg {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

.title-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.text-lg {
  font-size: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  text-align: center;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  border: none;
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

/* Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==================================
   WHATSAPP WIDGET
   ================================== */
.wa-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.wa-widget:hover {
  transform: scale(1.1);
}

.wa-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background-color: #ff3b3b;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

/* ==================================
   BLOG SECTION
   ================================== */
.blog-section {
  padding: 5rem 0;
  background-color: #f7f9fa;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.blog-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--text-muted);
}

.blog-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.4;
}

.blog-content .read-more {
  color: var(--cli-petro);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==================================
   GLOBAL FOOTER
   ================================== */
.global-footer {
  background-color: var(--amb-dark); /* Fundo Azul Escuro STW Ambiental */
  color: white;
  padding: 4rem 2rem 2rem;
  font-family: var(--font-text);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--amb-lime);
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-text {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
}
.footer-socials a:hover {
  color: var(--amb-dark);
  background-color: white;
  border-color: white;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}
.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-item a {
  color: inherit;
}
.footer-contact-item a:hover {
  color: var(--amb-lime);
}

.footer-map-iframe {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  border: none;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
  background-color: rgba(255,255,255,0.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}
