@font-face {
  font-family: 'UFES Sans';
  src: url('./assets/UfesSans-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'UFES Sans';
  src: url('./assets/UfesSans-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --purple: #5c2f84;
  --purple-dark: #4b2170;
  --orange: #ee832d;
  --ink: #382349;
  --gray: #e6e6e6;
  --card: #ffffff;
  --text: #45404a;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--gray); color: var(--text); font-family: 'UFES Sans', Arial, sans-serif; font-size: 1rem; line-height: 1.5; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 20; padding: 12px 20px; background: var(--purple-dark); color: white; border-radius: 6px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--purple-dark); outline-offset: 5px; }

.site-header { background: white; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 96px; padding-block: 12px; }
.brand { display: block; flex: 0 0 180px; }
.brand img { width: 180px; }
.nav-list { display: flex; align-items: center; gap: 27px; margin: 0; padding: 0; list-style: none; }
.nav-list a { display: block; padding-block: 10px; color: var(--purple); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; text-decoration: none; text-underline-offset: 6px; }
.nav-list a:hover { text-decoration: underline; }
.menu-toggle { display: none; }

.page-banner { background: white; border-top: 3px solid var(--orange); }
.banner-inner { padding-block: 26px 24px; }
.heading-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; }
h1 { margin: 0; color: var(--purple-dark); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.banner-description { margin: 8px 0 0; max-width: 620px; font-size: 1rem; }

.solutions { padding-block: 0 48px; background: white; border-bottom-right-radius: 64px; }
.solution-count { margin: 0; color: #66606a; font-size: .9375rem; white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.project-grid li { min-width: 0; display: flex; }
.project-card { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 122px; padding: 18px 20px; background: var(--card); color: var(--purple); border: 1px solid #e1dce5; border-radius: 8px 24px 8px 8px; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.project-card:hover, .project-card:focus-visible { border-color: var(--purple); background: #fafafa; }
.project-card:focus-visible { outline-offset: 4px; }
.card-body { flex: 1; min-width: 0; }
.card-category { display: block; margin-bottom: 6px; font-size: .875rem; color: #65566f; }
.project-card h2 { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; }
.card-place { display: block; margin-top: 5px; font-size: 1rem; line-height: 1.35; font-weight: 400; color: var(--text); }
.card-arrow { display: flex; flex: 0 0 18px; color: var(--purple); }
.card-arrow svg { display: block; width: 18px; height: 18px; }
.project-card:hover h2, .project-card:focus-visible h2 { text-decoration: underline; text-underline-offset: 3px; }
.project-card:hover .card-place, .project-card:focus-visible .card-place { text-decoration: none; }

.site-footer { padding-block: 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 26px; }
.footer-brand img { width: 152px; }
.footer-brand p { margin: 0; padding-left: 26px; border-left: 1px solid #c6becb; font-size: .9375rem; line-height: 1.5; }
.footer-brand strong { display: block; font-weight: 700; color: var(--purple); }
.footer-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px; border: 1px solid var(--purple); border-radius: 100px; color: var(--purple); font-weight: 700; text-decoration: none; }
.footer-contact:hover { background: var(--purple); color: white; }

@media (max-width: 1050px) {
  .header-inner { gap: 24px; }
  .brand { flex-basis: 178px; }
  .nav-list { gap: 18px; }
  .nav-list a { font-size: 1rem; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 90px; }
  .brand { flex-basis: 170px; }
  .site-nav { flex-basis: 100%; }
  .nav-list { flex-wrap: wrap; justify-content: flex-start; gap: 0 24px; padding-block: 10px; }
  .has-js .menu-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 15px; border: 1px solid #d9cfdf; border-radius: 24px; background: white; color: var(--purple); font-weight: 700; cursor: pointer; }
  .menu-toggle svg { width: 20px; height: 20px; }
  .has-js .site-nav:not(.is-open) { display: none; }
  .has-js .nav-list { display: block; margin-top: 15px; border-top: 1px solid var(--gray); }
  .has-js .nav-list a { padding: 12px 0; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { gap: 18px; }
  .footer-brand p { padding-left: 18px; }
}

@media (max-width: 580px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 80px; padding-block: 10px; }
  .brand { flex-basis: 144px; }
  .banner-inner { padding-block: 20px; }
  .solutions { padding-bottom: 32px; border-bottom-right-radius: 40px; }
  .solution-count { font-size: .875rem; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .project-card { min-height: 110px; padding: 16px 18px; }
  .site-footer { padding-block: 28px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 24px; }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-brand p { border: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
