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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-text-main);
  background-color: var(--color-background);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

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

/* Typography */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-tertiary { color: var(--color-tertiary); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: var(--font-primary);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-surface);
  box-shadow: var(--shadow-md);
}

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

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

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

.btn-tertiary {
  background-color: var(--color-tertiary);
  color: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.btn-tertiary:hover {
  background-color: #0f9384;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(232, 246, 249, 0.98); /* var(--color-background-alt) com opacidade */
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(25, 111, 179, 0.1);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-main);
}

.nav-links a:hover {
  color: var(--color-tertiary);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Sections */
section {
  padding: var(--spacing-section) 0;
}

.section-light {
  background-color: var(--color-background-alt);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Cards */
.card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-tertiary);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding: 3rem 0 1.5rem;
}

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

.footer-col h4 {
  color: var(--color-surface);
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--color-tertiary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.footer-legal-links a:hover {
  color: white;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  :root {
    --spacing-section: 80px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide on mobile, you could implement a hamburger menu later */
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  h1 { font-size: 2.25rem !important; }
  h2 { font-size: 1.75rem !important; }
  
  .btn { padding: 0.75rem 1.5rem; font-size: 1rem; }
  
  .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem !important; }
  h2 { font-size: 1.5rem !important; }
  
  .about-cards {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    gap: 2rem;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
}

/* Utilities adicionais para responsividade inline */
@media (max-width: 768px) {
  .p-responsive { padding: 1.5rem !important; }
  .text-responsive { font-size: 3rem !important; }
  .modal-content { padding: 1.5rem !important; }
  .grid-2 { gap: 1.5rem !important; }
}

/* Specific Section Styles */

/* Hero */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(20,184,166,0.2) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

/* Sobre Mim */
.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-card-mini {
  background: var(--color-background-alt);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* Missão */
.mission-quote {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

/* Ebook Feature */
.ebook-feature-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--color-tertiary);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.benefits-list {
  margin: 1.5rem 0 2rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.benefits-list li i {
  color: var(--color-tertiary);
  font-size: 1.25rem;
}

/* Social Cards */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.social-card {
  text-align: center;
  padding: 3rem 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-card:hover .card-icon {
  transform: scale(1.1);
}

.social-card .card-icon {
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

/* Accordion FAQ */
.accordion {
  margin-top: 2rem;
}

.accordion-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-family: var(--font-primary);
  color: var(--color-primary);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px; /* arbitrary max height */
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

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

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-tertiary);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.radio-group {
  display: flex;
  gap: 1.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-surface);
  color: var(--color-text-main);
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 4px solid var(--color-tertiary);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-text {
  font-size: 0.875rem;
  text-align: center;
  max-width: 800px;
}

.cookie-banner-text a {
  color: var(--color-tertiary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-btn {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    padding: 1rem 2rem;
  }
  .cookie-banner-text {
    text-align: left;
  }
}
