/* 
 * Landing Page Ebook - LAMP Application
 * Design Philosophy: Educacional Acolhedora
 * Cores: Verde-menta (esperança, crescimento) + Laranja-suave (segurança materna)
 */

:root {
  --primary: #4a9d6f;
  --primary-light: #6fb896;
  --primary-dark: #2d7a52;
  --accent: #d97e5c;
  --accent-light: #e89976;
  --accent-dark: #c26a47;
  --background: #fafaf8;
  --foreground: #3d3d3a;
  --muted: #e8e8e5;
  --muted-foreground: #8a8a85;
  --border: #e0e0db;
  --card-bg: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.logo svg {
  width: 24px;
  height: 24px;
}

/* Buttons */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><filter id="blur"><feGaussianBlur in="SourceGraphic" stdDeviation="40"/></filter></defs><rect fill="%23f5f5f5" width="1200" height="600"/><circle cx="100" cy="100" r="150" fill="%234a9d6f" opacity="0.1" filter="url(%23blur)"/><circle cx="1100" cy="500" r="200" fill="%23d97e5c" opacity="0.1" filter="url(%23blur)"/></svg>');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content h1 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.hero-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.benefit-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.benefit-text {
  color: var(--foreground);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.hero-image-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(135deg, rgba(74, 157, 111, 0.2), rgba(217, 126, 92, 0.2));
  border-radius: 2rem;
  filter: blur(2rem);
  z-index: -1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* Divider */
.divider {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  margin: 2rem 0;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background-color: var(--card-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 2rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(74, 157, 111, 0.1);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card.accent .feature-icon {
  background-color: rgba(217, 126, 92, 0.1);
  color: var(--accent);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.feature-card p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

/* About Section */
.about {
  padding: 4rem 0;
  background-color: rgba(74, 157, 111, 0.05);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about .container {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.about-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.about-content p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-content strong {
  color: var(--foreground);
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.about-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-list-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.about-quote {
  font-style: italic;
  color: var(--muted-foreground);
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin-top: 2rem;
}
.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-author-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-author-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(74, 157, 111, 0.2);
}

.about-image-placeholder {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(74, 157, 111, 0.1), rgba(217, 126, 92, 0.1));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 4rem;
}
/* CTA Section */
.cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(74, 157, 111, 0.05), rgba(217, 126, 92, 0.05));
}

.cta .container {
  text-align: center;
}

.cta h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-trust {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Footer */
footer {
  background-color: rgba(61, 61, 58, 0.05);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

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

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-section p, .footer-section ul {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}


.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
  animation: pulse 1.8s infinite;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Video Section */
.video-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(74, 157, 111, 0.08), rgba(217, 126, 92, 0.08));
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact Form Section */
.contact-section {
  padding: 4rem 0;
  background-color: var(--card-bg);
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(74, 157, 111, 0.05), rgba(217, 126, 92, 0.05));
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid rgba(74, 157, 111, 0.1);
}

.contact-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form-header h2 {
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.contact-form-header p {
  color: var(--muted-foreground);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--foreground);
  background-color: var(--background);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 157, 111, 0.1);
  background-color: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-submit:active {
  transform: translateY(0);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.4s ease;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-btn {
  padding: 1rem;
  border: none;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn-primary {
  background-color: var(--accent);
  color: white;
}

.modal-btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

.modal-btn-secondary {
  background-color: var(--muted);
  color: var(--foreground);
}

.modal-btn-secondary:hover {
  background-color: var(--border);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--foreground);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .features, .about, .cta {
    padding: 2rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
