/* Conhece os Teus Direitos - Civic Pop Design System */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Civic Pop Color Palette */
  --red: #FF3B30;
  --amber: #FF9F0A;
  --off-white: #F2F2F2;
  --dark-grey: #2E2E2E;
  --teal: #1FA7A0;
  
  /* Semantic mappings */
  --primary: var(--amber);
  --secondary: var(--teal);
  --alert: var(--red);
  --bg-main: var(--off-white);
  --bg-card: #FFFFFF;
  --text-primary: var(--dark-grey);
  --text-secondary: #4A4A4A;
  
  /* Typography using fallback fonts similar to Clash Display and General Sans */
  --font-display: 'Archivo Black', 'Impact', sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing and sizing */
  --border-radius: 20px;
  --border-radius-sm: 12px;
  --border-radius-lg: 32px;
  
  /* Shadows - stronger and more defined */
  --shadow-sm: 0 2px 12px rgba(46, 46, 46, 0.08);
  --shadow-md: 0 6px 24px rgba(46, 46, 46, 0.12);
  --shadow-lg: 0 12px 40px rgba(46, 46, 46, 0.16);
  --shadow-hover: 0 16px 48px rgba(255, 159, 10, 0.2);
  
  /* Smooth, bouncy transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Typography System - Civic Pop */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.015em;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  font-weight: 500;
  position: relative;
}

a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header {
  background: var(--dark-grey);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid var(--amber);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 1.75rem 0;
  gap: 2rem;
  position: relative;
  margin: 0.5rem 0;
}

/* Language switcher removed - Portuguese only */

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}

.logo:hover {
  color: var(--teal);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  color: var(--off-white);
  position: relative;
  text-decoration: none;
  line-height: 1.2;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-fast);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--amber);
}

.mobile-menu-toggle {
  display: none;
  background: var(--amber);
  color: var(--dark-grey);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-display);
  font-weight: 900;
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle:hover {
  background: var(--teal);
  color: white;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark-grey) 0%, #1a1a1a 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 6px solid var(--amber);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 159, 10, 0.1) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(10%) scale(1.1); }
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--off-white);
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 20px rgba(255, 159, 10, 0.3);
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--off-white);
  position: relative;
  z-index: 1;
  line-height: 1.6;
  font-weight: 400;
}

/* Main Content */
main {
  padding: 3rem 0;
  min-height: 60vh;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.05) 0%, rgba(31, 167, 160, 0.05) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--amber);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  display: block;
  transition: var(--transition-smooth);
  filter: grayscale(0.3);
}

.card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
  filter: grayscale(0);
}

.card h3 {
  color: var(--dark-grey);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.card p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--amber);
  color: var(--dark-grey);
}

.btn-primary:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
  background: var(--amber);
  color: var(--dark-grey);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--amber);
  border: 3px solid var(--amber);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--amber);
  color: var(--dark-grey);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Content Sections */
.content-section {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-md);
  border-left: 8px solid var(--amber);
  transition: var(--transition-fast);
}

.content-section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.content-section h2 {
  color: var(--dark-grey);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--amber);
}

.content-section h3 {
  color: var(--teal);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.content-section h4 {
  color: var(--text-primary);
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

/* Highlight Boxes */
.highlight-box {
  background: rgba(31, 167, 160, 0.08);
  border-radius: var(--border-radius-sm);
  padding: 2rem;
  margin: 2rem 0;
  border-left: 6px solid var(--teal);
  transition: var(--transition-fast);
}

.highlight-box:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.highlight-box.warning {
  background: rgba(255, 159, 10, 0.1);
  border-left-color: var(--amber);
}

.highlight-box.success {
  background: rgba(31, 167, 160, 0.12);
  border-left-color: var(--teal);
}

.highlight-box.important {
  background: rgba(255, 59, 48, 0.08);
  border-left-color: var(--red);
}

.highlight-box h4 {
  margin-top: 0;
  color: var(--dark-grey);
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
}

/* Lists */
ul, ol {
  margin: 1.5rem 0 1.5rem 2rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.icon-list {
  list-style: none;
  margin-left: 0;
}

.icon-list li {
  padding-left: 2.5rem;
  position: relative;
  transition: var(--transition-fast);
}

.icon-list li:hover {
  transform: translateX(4px);
  color: var(--dark-grey);
}

.icon-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
  font-size: 1.4rem;
  transition: var(--transition-fast);
}

.icon-list li:hover::before {
  color: var(--amber);
  transform: scale(1.2);
}

/* Disclaimer */
.disclaimer {
  background: rgba(255, 159, 10, 0.15);
  border: 4px solid var(--amber);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  font-weight: 600;
  color: var(--dark-grey);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.disclaimer:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.disclaimer::before {
  content: '⚠️';
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Footer */
footer {
  background: var(--dark-grey);
  color: var(--off-white);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  border-top: 6px solid var(--amber);
  position: relative;
}

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

.footer-section h4 {
  color: var(--amber);
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.footer-section a {
  color: var(--off-white);
  display: block;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
  font-weight: 400;
}

.footer-section a:hover {
  color: var(--teal);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  margin-top: 2rem;
  border-top: 2px solid rgba(255, 159, 10, 0.3);
  color: rgba(242, 242, 242, 0.7);
}

.footer-legal-disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(242, 242, 242, 0.5);
  font-weight: 400;
  line-height: 1.4;
}

/* Examples Section */
.examples {
  display: grid;
  gap: 2rem;
  margin: 2.5rem 0;
}

.example-item {
  background: var(--bg-card);
  border-radius: var(--border-radius-sm);
  padding: 2rem;
  border-left: 6px solid var(--teal);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.example-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--amber);
}

.example-item h4 {
  color: var(--teal);
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  transition: var(--transition-fast);
}

.example-item:hover h4 {
  color: var(--amber);
}

/* FAQ / Expandable Sections */
.faq-item {
  background: var(--bg-card);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 2px solid var(--bg-light);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  padding: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

/* Resource Links */
.resource-links {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.resource-link {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.resource-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--amber), var(--teal));
  transform: scaleY(0);
  transition: var(--transition-smooth);
}

.resource-link:hover {
  transform: translateX(12px) scale(1.02);
  border-color: var(--amber);
  box-shadow: var(--shadow-hover);
}

.resource-link:hover::before {
  transform: scaleY(1);
}

.resource-link .icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.resource-link:hover .icon {
  transform: scale(1.2) rotate(5deg);
}

.resource-link h4 {
  margin: 0 0 0.5rem;
  color: var(--dark-grey);
  font-family: var(--font-body);
  font-weight: 700;
  transition: var(--transition-fast);
}

.resource-link:hover h4 {
  color: var(--amber);
}

.resource-link p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Breadcrumb - Removed */

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    flex-wrap: nowrap;
    padding: 0.75rem 0;
    justify-content: flex-end;
    position: relative;
  }

  .logo {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    left: 0;
    background: var(--dark-grey);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 1.5rem 0;
    gap: 0.5rem;
    align-items: stretch;
    border-radius: 0 0 16px 16px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-links li {
    width: 100%;
    padding: 0 1rem;
  }
  
  .nav-links a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 159, 10, 0.1);
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  header {
    padding: 0.5rem 0;
  }

  .hero {
    padding: 2.5rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }

  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 2rem;
  }
  
  .content-section {
    padding: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .ticker-item {
    font-size: 1.5rem;
    padding: 0 2rem;
  }
  
  .resource-link {
    flex-direction: column;
    text-align: center;
  }
}

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

.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

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

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Infinite Scrolling Ticker */
.ticker-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 4rem;
  margin-bottom: 4rem;
  overflow: hidden;
}

.ticker-wrapper {
  background: var(--amber);
  border-top: 4px solid var(--dark-grey);
  border-bottom: 4px solid var(--dark-grey);
  overflow: hidden;
  padding: 1.5rem 0;
  position: relative;
  width: 100%;
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

.ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark-grey);
  text-transform: uppercase;
  padding: 0 3rem;
  letter-spacing: 0.05em;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .ticker {
    animation: none;
  }
}

/* Print Styles */
@media print {
  header, footer, .breadcrumb, .ticker-wrapper {
    display: none;
  }
  
  body {
    background: white;
  }
  
  .content-section {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
