/*
Theme Name: Couto Ambiental
Theme URI: https://coutoambiental.com.br
Author: Couto Ambiental
Description: Landing page para conformidade CTF/IBAMA - TCFA, RAPP e Certificado de Regularidade
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: couto-ambiental
*/

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

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: hsl(160, 15%, 6%);
  --fg: hsl(45, 20%, 92%);
  --card-bg: hsl(160, 12%, 10%);
  --secondary-bg: hsl(160, 20%, 15%);
  --muted: hsl(160, 8%, 55%);
  --border-color: hsl(160, 10%, 18%);
  --gold: hsl(45, 70%, 52%);
  --gold-light: hsl(45, 80%, 70%);
  --gold-dark: hsl(38, 80%, 45%);
  --green-accent: hsl(150, 50%, 35%);
  --destructive: hsl(0, 72%, 51%);
  --radius: 0.75rem;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --shadow-gold: 0 4px 30px -5px hsla(45, 70%, 52%, 0.25);
  --shadow-card: 0 8px 40px -10px hsla(0, 0%, 0%, 0.5);
}

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

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-gradient-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.section-padding { padding: 6rem 0; }
.bg-secondary { background: var(--secondary-bg); }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s;
}
.card:hover { border-color: hsla(45, 70%, 52%, 0.3); }

/* ===== LOGO / NAV ===== */
.site-logo { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 1rem 1.5rem; }
.site-logo img { height: 2rem; }
@media (min-width: 768px) { .site-logo img { height: 2.5rem; } }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsla(160,15%,6%,0.8), hsla(160,15%,6%,0.6), var(--bg));
}
.hero-content {
  position: relative;
  z-index: 10;
  padding: 6rem 0 4rem;
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid hsla(45, 70%, 52%, 0.3);
  background: hsla(45, 70%, 52%, 0.1);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero-desc {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 36rem;
}
.hero-desc strong { color: var(--fg); }

/* ===== BUTTONS ===== */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s;
}
.btn-gold:hover { transform: scale(1.03); }

/* ===== VIDEO ===== */
.hero-video {
  display: flex;
  justify-content: center;
}
.hero-video-wrapper {
  width: 300px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}
.hero-video-wrapper .aspect-9-16 {
  position: relative;
  padding-bottom: 177.78%;
}
.hero-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
@media (min-width: 768px) { .hero-video-wrapper { width: 350px; } }

/* ===== PROBLEMS SECTION ===== */
.problems-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .problems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .problems-grid { grid-template-columns: repeat(4, 1fr); } }

.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.icon-box.danger { background: hsla(0, 72%, 51%, 0.15); }
.icon-box.danger svg { color: var(--destructive); }
.icon-box.accent { background: hsla(150, 40%, 25%, 1); }
.icon-box.accent svg { color: var(--green-accent); }
.icon-box.gold { background: hsla(45, 70%, 52%, 0.1); }
.icon-box.gold svg { color: var(--gold); }

.urgency-box {
  margin-top: 3rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid hsla(45, 70%, 52%, 0.2);
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
}
.urgency-box h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.urgency-box ul { list-style: none; padding: 0; }
.urgency-box li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.urgency-box li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--destructive);
  flex-shrink: 0;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 5rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.steps-grid {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ===== SOCIAL PROOF ===== */
.reasons-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) { .reasons-grid { grid-template-columns: repeat(3, 1fr); } }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 42rem;
  margin: 0 auto 5rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
}
@media (min-width: 768px) { .stat-value { font-size: 3rem; } }
.stat-label { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; color: var(--gold); }
.testimonial-text { color: var(--muted); font-size: 0.875rem; font-style: italic; margin-bottom: 1rem; }
.testimonial-name { font-family: var(--font-display); font-weight: 600; }
.testimonial-company { font-size: 0.875rem; color: var(--muted); }

/* ===== FORM ===== */
.form-wrapper { max-width: 42rem; margin: 0 auto; }
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.form-notice {
  border: 1px solid hsla(45, 70%, 52%, 0.2);
  background: hsla(45, 70%, 52%, 0.05);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.form-notice strong { color: var(--gold); }
.form-grid { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--secondary-bg);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  color: var(--fg);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus {
  outline: none;
  border-color: hsla(45, 70%, 52%, 0.5);
  box-shadow: 0 0 0 3px hsla(45, 70%, 52%, 0.15);
}
.form-radio-group {
  display: flex;
  gap: 1rem;
  padding-top: 0.5rem;
}
.form-radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ===== FAQ ===== */
.faq-wrapper { max-width: 48rem; margin: 0 auto; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--gold); }
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 1.5rem;
  color: var(--muted);
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.25rem;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  text-align: center;
}
.site-footer h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.site-footer .sub { font-size: 0.875rem; color: var(--muted); }
.site-footer .copy { font-size: 0.75rem; color: var(--muted); margin-top: 1rem; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 1.75rem; height: 1.75rem; fill: #fff; }

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 4rem;
}
