/* Landing Page: Portugal ↔ Brasil (Subpasta: /portugal/) */

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

:root {
  --primary: #0066cc;
  --primary-dark: #004499;
  --secondary: #00aa44;
  --gray-light: #f5f5f5;
  --gray-medium: #cccccc;
  --gray-dark: #333333;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border: #e0e0e0;
  --success: #00aa44;
  --error: #cc0000;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: #ffffff;
}

/* Header & Navigation */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

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

.language-selector {
  position: relative;
}

.language-selector select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
}

.language-selector select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.cta-header {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-header:hover {
  background: var(--primary-dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .subheadline {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero .description {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-primary {
  background: var(--secondary);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2rem;
}

.cta-primary:hover {
  background: #009933;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 170, 68, 0.3);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  opacity: 0.9;
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Section Container */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-primary);
}

/* Credibility Section */
.credibility {
  background: var(--gray-light);
}

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

.credibility-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.credibility-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.credibility-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.credibility-detail {
  margin-top: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.credibility-detail p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* How It Works */
.how-it-works {
  background: white;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.timeline-step {
  background: var(--gray-light);
  padding: 2rem;
  border-radius: 8px;
  border-top: 4px solid var(--primary);
}

.timeline-step h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.timeline-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-step ul {
  margin-top: 1rem;
  margin-left: 1.5rem;
}

.timeline-step li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* For Whom */
.for-whom {
  background: var(--gray-light);
}

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

.profile-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.profile-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.profile-card ul {
  margin-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.profile-card li {
  margin-bottom: 0.5rem;
}

.profile-example {
  background: #f0f8ff;
  padding: 1rem;
  border-left: 3px solid var(--primary);
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: 4px;
}

/* Differentials */
.differentials {
  background: white;
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.differential-card {
  background: var(--gray-light);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
}

.differential-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.differential-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA Final Section */
.cta-final {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.cta-final h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-final .description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .cta-primary {
  background: var(--secondary);
  margin-bottom: 2rem;
}

.alternatives {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.alternatives p {
  margin-bottom: 0.5rem;
}

.alternatives a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.alternatives a:hover {
  text-decoration: underline;
}

/* Form Styles */
.form-container {
  background: var(--gray-light);
  padding: 3rem 2rem;
  border-radius: 8px;
  max-width: 600px;
  margin: 3rem auto;
}

.form-container h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-container .subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

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

.form-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.form-group label .required {
  color: var(--error);
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.form-group .radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group .radio-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-group input[type="radio"] {
  margin-top: 0.25rem;
  cursor: pointer;
}

.form-group .radio-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.form-group .radio-label span {
  font-weight: 500;
  color: var(--text-primary);
}

.form-group .radio-sublabel {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: normal;
}

.investment-block {
  background: white;
  padding: 1.5rem;
  border-radius: 6px;
  border-left: 4px solid var(--primary);
  margin-bottom: 2rem;
}

.investment-block .micro-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.form-group .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-group input[type="checkbox"] {
  margin-top: 0.25rem;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.form-actions button {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-actions .submit {
  background: var(--primary);
  color: white;
}

.form-actions .submit:hover {
  background: var(--primary-dark);
}

.form-actions .cancel {
  background: var(--gray-medium);
  color: var(--text-primary);
}

.form-actions .cancel:hover {
  background: #bbbbbb;
}

/* Form Success Message */
.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid var(--success);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.form-success.show {
  display: block;
}

.form-success h4 {
  color: var(--success);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-success .ref-id {
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
}

/* Footer */
footer {
  background: var(--gray-dark);
  color: white;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: #66ccff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

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

  .hero .subheadline {
    font-size: 1.1rem;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .trust-badges {
    gap: 1rem;
    font-size: 0.85rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .differentials-grid {
    grid-template-columns: 1fr;
  }

  .credibility-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .header-container {
    padding: 1rem;
  }

  .cta-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}
