/* ==========================================================================
   IRB VIII CICPP - Static Design System (CSS Vanilla)
   ========================================================================== */

:root {
  --primary: #8b1d24;
  --primary-hover: #6f161c;
  --secondary: #f4f6f9;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Basic Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

main.main-content {
  flex: 1;
  padding-top: 5.5rem;
  padding-bottom: 3rem;
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}

.mobile-menu-btn:hover {
  background-color: var(--secondary);
}

.nav-mobile {
  display: none;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-mobile .nav-link {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.nav-mobile .nav-link:hover {
  background-color: var(--secondary);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* Typography & Headings */
h1.page-title {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

h2.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

.text-justify {
  text-align: justify;
}

/* Banner Image */
.hero-banner {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

/* Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.card-grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.card-grid-5 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
  text-align: center;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Timeline / Programação Cards */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid #2563eb;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.timeline-card.green {
  border-left-color: #10b981;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-badge-location {
  color: #dc2626;
  font-weight: 700;
  margin-left: auto;
}

.timeline-content {
  font-size: 0.95rem;
  color: var(--text-main);
}

.sub-item-box {
  background-color: #f8fafc;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

/* Hotel & Tourism Specifics */
.info-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  color: #dc2626;
  width: 1.25rem;
  height: 1.25rem;
}

.hotel-chip {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* Footer Styling */
.site-footer {
  background-color: var(--secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  padding-bottom: 2rem;
  margin-top: auto;
}

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

.footer-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.logo-grid img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.logo-grid img:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
