@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --background: 35 100% 95%;
  --foreground: 20 10% 15%;
  --card: 0 0% 100%;
  --card-foreground: 20 10% 15%;
  --primary: 22 100% 50%;
  --primary-foreground: 0 0% 100%;
  --secondary: 45 100% 50%;
  --secondary-foreground: 20 10% 15%;
  --accent: 0 85% 55%;
  --accent-foreground: 0 0% 100%;
  --muted: 35 30% 90%;
  --muted-foreground: 20 10% 40%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 35 30% 80%;
  --input: 35 30% 85%;
  --ring: 22 100% 50%;
  --radius: 0.5rem;
  --evq-orange: 22 100% 50%;
  --evq-yellow: 45 100% 50%;
  --evq-red: 0 85% 55%;
  --evq-coral: 16 100% 66%;
  --evq-peach: 30 100% 85%;
  --evq-dark: 20 10% 20%;
  --gradient-summer: linear-gradient(135deg, hsl(35 100% 70%) 0%, hsl(30 100% 80%) 50%, hsl(35 100% 85%) 100%);
  --gradient-nav: linear-gradient(180deg, hsl(45 100% 55%) 0%, hsl(35 100% 60%) 100%);
  --gradient-hero-btn: linear-gradient(90deg, hsl(22 100% 50%) 0%, hsl(0 85% 55%) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  background: var(--gradient-summer);
  color: hsl(var(--foreground));
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 900;
}

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: relative;
  padding: 2rem 1rem;
}

header .container > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  header .container > div {
    flex-direction: row;
  }
}

header img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

@media (min-width: 768px) {
  header img {
    width: 128px;
    height: 128px;
  }
}

header .header-title {
  text-align: center;
  flex: 1;
}

.evq-title {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 900;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .evq-title {
    font-size: 3rem;
  }
}

.evq-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .evq-subtitle {
    font-size: 1.5rem;
  }
}

.evq-highlight {
  color: hsl(var(--accent));
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 0.5rem;
  display: block;
}

.hero-banner {
  background: var(--gradient-hero-btn);
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .hero-banner {
    font-size: 1.5rem;
  }
}

.ufscar-logo {
  text-align: right;
  font-size: 2rem;
  font-weight: 900;
  color: hsl(var(--primary));
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .ufscar-logo {
    font-size: 2.5rem;
  }
}

.ufscar-logo .car {
  color: hsl(var(--secondary));
}

/* Navigation */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.5rem 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  background: hsla(var(--secondary), 0.8);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 0.25rem;
}

.nav-tab {
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-block;
}

@media (min-width: 768px) {
  .nav-tab {
    font-size: 1rem;
  }
}

.nav-tab:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.nav-tab-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.nav-tab-accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.nav-tab-accent:hover {
  background: hsla(var(--accent), 0.9);
}

.breadcrumb-bar ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.875rem;
}

.breadcrumb-bar a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb-bar a:hover {
  text-decoration-thickness: 2px;
}

.breadcrumb-bar [aria-current='page'] {
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* Section Card */
.section-card {
  background: hsl(var(--card));
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin: 2rem 1rem;
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  margin: 0 1rem;
}

.hero-carousel-inner {
  position: relative;
  aspect-ratio: 16 / 7;
}

@media (min-width: 768px) {
  .hero-carousel-inner {
    aspect-ratio: 16 / 5;
  }
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: hsla(var(--card), 0.5);
  padding: 0.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  background: hsla(var(--card), 0.7);
}

.carousel-btn-left {
  left: 1rem;
}

.carousel-btn-right {
  right: 1rem;
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  background: hsla(var(--card), 0.6);
}

.carousel-dot.active {
  background: hsl(var(--primary));
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-label .required {
  color: hsl(var(--accent));
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--input));
  border-radius: 0.375rem;
  font-size: 1rem;
  color: hsl(var(--foreground));
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsla(var(--ring), 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background: hsla(var(--primary), 0.9);
}

.btn-full {
  width: 100%;
}

@media (min-width: 768px) {
  .btn-full {
    width: auto;
  }
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.p-4 {
  padding: 1rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.bg-muted {
  background: hsl(var(--muted));
}

.bg-card {
  background: hsl(var(--card));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.rounded-lg {
  border-radius: 0.5rem;
}

.hover-bg-secondary:hover {
  background: hsla(var(--secondary), 0.2);
  transition: background 0.2s;
}

.cursor-pointer {
  cursor: pointer;
}

/* Footer */
footer {
  background: hsla(var(--foreground), 0.9);
  color: hsl(var(--background));
  padding: 2rem 1rem;
  margin-top: 2rem;
}

footer .container > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  footer .container > div {
    flex-direction: row;
  }
}

.footer-card {
  background: hsl(var(--card));
  padding: 0.5rem;
  border-radius: 0.375rem;
}

.footer-card .text-foreground {
  color: hsl(var(--foreground));
  font-weight: 700;
  font-size: 0.875rem;
}

.footer-card .footer-ufscar {
  color: hsl(var(--foreground));
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-card .footer-ufscar .car {
  color: hsl(var(--secondary));
}

footer .footer-map {
  background: hsl(var(--card));
  border-radius: 0.5rem;
  overflow: hidden;
  width: 100%;
  max-width: 192px;
  height: 128px;
}

footer .footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Map in contact */
.contact-map {
  background: hsl(var(--muted));
  border-radius: 0.5rem;
  height: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.5rem;
}

/* Cursos */
.curso-item {
  padding: 1rem;
  border-radius: 0.5rem;
  background: hsl(var(--muted));
  cursor: pointer;
  transition: background 0.2s;
}

.curso-item:hover {
  background: hsla(var(--secondary), 0.2);
}

.curso-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.curso-item .curso-descricao {
  display: block;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* Comissão */
.comissao-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.comissao-sponsor {
  text-align: center;
  padding: 1rem;
}

/* Diploma */
.diploma-media {
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
}

.diploma-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Social Icons */
.social-icon {
  color: hsl(var(--primary));
  transition: color 0.2s;
  text-decoration: none;
}

.social-icon:hover {
  color: hsla(var(--primary), 0.8);
}

/* Main */
main {
  padding-bottom: 2rem;
  min-height: 60vh;
}

/* Flex utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }
}

/* Spacing utilities */
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Border */
.border {
  border-width: 1px;
}

.border-border {
  border-color: hsl(var(--border));
}

/* Width/Height */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.object-contain {
  object-fit: contain;
}

.object-cover {
  object-fit: cover;
}

/* Text */
.text-right {
  text-align: right;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Z-index */
.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Transition */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Drop shadow */
.drop-shadow-lg {
  filter: drop-shadow(0 10px 15px -3px rgba(0, 0, 0, 0.1)) drop-shadow(0 4px 6px -2px rgba(0, 0, 0, 0.05));
}

/* Responsive adjustments */
@media (min-width: 768px) {
  header .container > div {
    flex-direction: row;
  }
  
  footer .container > div {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }
  
  .section-card {
    margin: 1rem 0.5rem;
    padding: 1rem;
  }
}

