@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette */
  --primary: #743910;
  --primary-hover: #5a2c0c;
  --primary-rgb: 116, 57, 16;
  --secondary: #4CB98F;
  --secondary-hover: #3ca37c;
  --secondary-rgb: 76, 185, 143;
  --bg-base: #FAF6F1;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F3ECE3;
  --text-main: #2C1E15;
  --text-muted: #665246;
  --text-light: #FFFFFF;
  
  /* Flags accents */
  --angola-red: #D81E05;
  --angola-black: #000000;
  --angola-gold: #F2C94C;
  --brazil-green: #219653;
  --brazil-yellow: #F2C94C;
  --brazil-blue: #2F80ED;
  
  /* Borders and Shadow */
  --border-color: rgba(116, 57, 16, 0.12);
  --border-light: rgba(116, 57, 16, 0.06);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 10px rgba(116, 57, 16, 0.03);
  --shadow-md: 0 10px 25px rgba(116, 57, 16, 0.06);
  --shadow-lg: 0 20px 40px rgba(116, 57, 16, 0.1);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.05);

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Animation */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Max width */
  --max-width: 1200px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--primary);
  font-weight: 700;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(216, 30, 5, 0.1);
  color: var(--angola-red);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  border: 1px solid rgba(216, 30, 5, 0.2);
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-smooth);
}

button.badge:hover {
  background-color: rgba(216, 30, 5, 0.18);
  transform: translateY(-1px);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--angola-red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(216, 30, 5, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(216, 30, 5, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(216, 30, 5, 0);
  }
}

/* Accent Line (Angola & Brazil flags combined) */
.flag-accent-line {
  height: 4px;
  width: 100px;
  background: linear-gradient(to right, 
    var(--angola-red) 0%, var(--angola-red) 25%, 
    var(--angola-black) 25%, var(--angola-black) 50%,
    var(--brazil-green) 50%, var(--brazil-green) 75%, 
    var(--brazil-yellow) 75%, var(--brazil-yellow) 100%
  );
  border-radius: 2px;
  margin: 1.5rem auto;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 185, 143, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(116, 57, 16, 0.15);
}

/* Header & Hero Section */
.hero-wrapper {
  background: radial-gradient(circle at top right, rgba(76, 185, 143, 0.08), transparent 40%),
              radial-gradient(circle at bottom left, rgba(116, 57, 16, 0.05), transparent 40%);
  padding: 1.5rem 0 4rem 0;
  border-bottom: 1px solid var(--border-light);
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Logo Styling */
.logo-img {
  max-height: 120px;
  width: auto;
  transition: var(--transition-smooth);
}

.partners-mini-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  opacity: 0.85;
}

.partner-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.partner-logo-item svg {
  height: 28px;
  fill: var(--text-muted);
  margin-bottom: 0.25rem;
  transition: var(--transition-smooth);
}

.partner-logo-item:hover svg {
  fill: var(--primary);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-meta {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.25;
  margin: 1.5rem 0 1rem 0;
  color: var(--primary);
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.hero-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 750px;
  margin: 2rem auto;
}

.hero-detail-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: var(--transition-smooth);
}

.hero-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(116, 57, 16, 0.25);
}

.hero-detail-icon {
  background-color: rgba(116, 57, 16, 0.08);
  color: var(--primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-detail-text h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.hero-detail-text p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Countdown Styles */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--bg-card-alt);
  padding: 1.25rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(116, 57, 16, 0.08);
  box-shadow: var(--shadow-inset);
  max-width: 500px;
  width: 100%;
}

.countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.countdown-separator {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(116, 57, 16, 0.3);
  display: flex;
  align-items: center;
}

/* Section Common Layout */
section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-card-alt);
}

/* Section: Sobre o GIEPEI */
.sobre-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.sobre-text-wrapper {
  text-align: left;
}

.sobre-highlight-box {
  background-color: rgba(76, 185, 143, 0.08);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 2rem;
}

.sobre-highlight-box p {
  margin-bottom: 0;
  font-style: italic;
}

/* Section: Programacao */
.tabs-header {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  background-color: rgba(116, 57, 16, 0.05);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.program-card-wrapper {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.program-day-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.program-day-title {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.program-day-hours {
  background-color: rgba(76, 185, 143, 0.1);
  color: var(--secondary-hover);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
}

.program-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.program-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(116, 57, 16, 0.15);
  text-align: left;
}

.program-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 2px solid var(--bg-card);
}

.program-item.highlighted::before {
  background-color: var(--secondary);
}

.program-time {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.program-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-main);
}

.program-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.program-speaker {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-hover);
}

.program-placeholder-alert {
  background-color: rgba(116, 57, 16, 0.03);
  border: 1px dashed rgba(116, 57, 16, 0.25);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
}

/* Section: Instituicoes */
.instituicoes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.instituicao-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.instituicao-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(116, 57, 16, 0.2);
}

.inst-country-flag {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flag-ao {
  color: var(--angola-red);
}

.flag-br {
  color: var(--brazil-green);
}

.inst-name {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.inst-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.inst-groups {
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.inst-groups-title {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.inst-groups-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.inst-group-tag {
  font-size: 0.8rem;
  background-color: var(--bg-base);
  color: var(--text-main);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  font-weight: 500;
}

/* Section: Linhas Temáticas */
.tematicas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tematica-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.tematica-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(76, 185, 143, 0.4);
}

.tematica-icon {
  background-color: rgba(76, 185, 143, 0.1);
  color: var(--secondary-hover);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tematica-content h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.tematica-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Section: Representantes */
.representantes-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 950px;
  margin: 0 auto;
}

.representante-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.representante-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.rep-avatar-wrapper {
  position: relative;
}

.rep-avatar-fallback {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(116, 57, 16, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  border: 3px solid var(--bg-base);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.rep-avatar-fallback svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rep-country-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 1.4rem;
  background-color: var(--bg-card);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.rep-name {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.rep-role {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-hover);
  font-weight: 700;
  margin-bottom: 1rem;
}

.rep-bio {
  font-size: 0.95rem;
  margin-bottom: 0;
  max-width: 500px;
}

/* Section: Como Assistir & Compartilhar */
.assistir-box {
  background: radial-gradient(circle at bottom right, rgba(76, 185, 143, 0.08), transparent 45%),
              linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.assistir-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.assistir-text {
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

.share-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 2.5rem 0 1.25rem 0;
  font-weight: 700;
  font-family: var(--font-sans);
}

.share-buttons-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-share {
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-whatsapp {
  background-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #1ebd57;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.btn-facebook {
  background-color: #1877F2;
}

.btn-facebook:hover {
  background-color: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(24, 119, 242, 0.3);
}

.contact-email {
  font-weight: 600;
  font-size: 1.05rem;
}

/* Footer Styles */
footer {
  background-color: #2C1E15;
  color: #DDD4CD;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(116, 57, 16, 0.2);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.footer-logo {
  max-height: 80px;
  filter: brightness(0) invert(1) contrast(0.9);
  opacity: 0.85;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: #DDD4CD;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--secondary);
}

.footer-info {
  font-size: 0.9rem;
  color: #A39387;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Responsive Breakpoints */
@media (min-width: 600px) {
  .logo-img {
    max-height: 85px;
  }
  
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-container {
    width: auto;
    justify-content: flex-start;
  }
  
  .partners-mini-bar {
    justify-content: flex-end;
    width: auto;
  }

  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .countdown-container {
    width: auto;
  }
}

@media (min-width: 768px) {
  .sobre-layout {
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
  }
  
  .instituicoes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tematicas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .representantes-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
  
  .representante-card {
    text-align: left;
    flex-direction: row;
  }
  
  .rep-avatar-wrapper {
    flex-shrink: 0;
  }
  
  .footer-info {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .tematicas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}