/* ============================================================
   UAI Site — Versão HTML/CSS (espelha o design system React)
   ============================================================ */

:root {
  --background: #ffffff;
  --foreground: #383530;
  --primary: #4f9d9d;
  --primary-foreground: #ffffff;
  --primary-10: rgba(79, 157, 157, 0.10);
  --primary-40: rgba(79, 157, 157, 0.40);
  --secondary: #f6f5f3;
  --muted-foreground: #7d7873;
  --brand: #cf5a2a;
  --brand-foreground: #ffffff;
  --border: #e5e3df;
  --radius: 0.375rem;
  --font-display: "Oswald", sans-serif;
  --font-sans: "Open Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 500; }

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

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

.ico { width: 1rem; height: 1rem; flex-shrink: 0; }
.ico.brand { color: var(--brand); }

.uai-container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-title {
  position: relative;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--foreground);
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--brand);
}
.section-title.center { text-align: center; }
.section-title.center::after { margin-inline: auto; }

.muted { color: var(--muted-foreground); }
.lead { margin-top: 1.5rem; line-height: 1.7; color: var(--muted-foreground); }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .2s, background-color .2s, gap .2s;
}
.btn-brand { background: var(--brand); color: var(--brand-foreground); }
.btn-brand:hover { opacity: .9; }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.link-brand { color: var(--brand); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .875rem; display: inline-flex; align-items: center; gap: .5rem; }
.link-brand:hover { gap: .75rem; }
.arrow { width: 1rem; height: 1rem; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--background); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.topbar { background: var(--primary); color: var(--primary-foreground); }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-block: .375rem; font-size: .75rem; }
.topbar-link { display: inline-flex; align-items: center; gap: .375rem; }
.topbar-link:hover { opacity: .8; }
.topbar-link .ico { width: .85rem; height: .85rem; }

.header-main { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; }
.logo-img { height: 3.5rem; width: auto; }
.main-nav { display: none; align-items: center; gap: .25rem; }
.nav-link { border-radius: var(--radius); padding: .5rem .75rem; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; transition: color .2s; }
.nav-link:hover, .nav-link.is-active { color: var(--brand); }
.menu-toggle { background: none; border: none; color: var(--foreground); padding: .5rem; cursor: pointer; }
.menu-toggle .ico { width: 1.5rem; height: 1.5rem; }

.mobile-nav { border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav-inner { display: flex; flex-direction: column; padding-block: .5rem; }
.mobile-nav-link { border-bottom: 1px solid var(--border); padding-block: .75rem; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mobile-nav-link.is-active { color: var(--brand); }

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

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(56,53,48,.55); }
.hero-content { position: relative; padding-block: 6rem; }
.hero-eyebrow { font-family: var(--font-display); font-size: .875rem; text-transform: uppercase; letter-spacing: .25em; color: var(--brand); }
.hero-title { margin-top: 1rem; max-width: 48rem; font-family: var(--font-display); font-size: 2.25rem; text-transform: uppercase; line-height: 1.1; color: var(--background); }
.hero-sub { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; color: rgba(255,255,255,.85); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

@media (min-width: 768px) {
  .hero-content { padding-block: 8rem; }
  .hero-title { font-size: 3.75rem; }
}

/* ===== Layout helpers ===== */
.section { padding-block: 4rem; }
.section.tight { padding-block: 3.5rem; }
.bg-secondary { background: var(--secondary); }
.bg-primary { background: var(--primary); color: var(--primary-foreground); }

.grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2.align-center { align-items: center; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { border: 1px solid var(--border); background: var(--secondary); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.stat-n { font-family: var(--font-display); font-size: 1.875rem; color: var(--brand); }
.stat-l { margin-top: .25rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-foreground); }

/* Services grid */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.service-card { display: block; border: 1px solid var(--border); background: var(--background); border-radius: var(--radius); padding: 1.5rem; transition: border-color .2s, box-shadow .2s; }
.service-card:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.service-icon { display: inline-flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--primary-10); color: var(--primary); transition: background-color .2s, color .2s; }
.service-icon svg { width: 1.5rem; height: 1.5rem; }
.service-card:hover .service-icon { background: var(--brand); color: var(--brand-foreground); }
.service-card h3 { margin-top: 1rem; font-size: 1.125rem; text-transform: uppercase; }
.service-card p { margin-top: .5rem; font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); }

/* Product cards */
.prod-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: border-color .2s; }
.prod-card:hover { border-color: var(--brand); }
.prod-card h3 { font-size: 1.125rem; text-transform: uppercase; color: var(--primary); }
.prod-card p { margin-top: .5rem; font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); }
.stack { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }

/* News */
.news-item { border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; }
.news-date { font-family: var(--font-display); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.news-item h3 { margin-top: .25rem; font-size: 1.125rem; }
.news-item p { margin-top: .25rem; font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); }

/* Projects */
.proj-cards { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .proj-cards { grid-template-columns: 1fr 1fr; } }
.proj-card-light { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.proj-card-light h3 { font-size: 1.125rem; text-transform: uppercase; color: var(--primary); }
.proj-card-light p { margin-top: .75rem; line-height: 1.7; color: var(--muted-foreground); }
.proj-card-dark { border-radius: var(--radius); background: rgba(255,255,255,.1); padding: 1.5rem; }
.proj-card-dark h3 { font-size: 1.25rem; text-transform: uppercase; }
.proj-card-dark p { margin-top: .75rem; line-height: 1.7; color: rgba(255,255,255,.85); }

/* CTA box */
.cta-box { border: 1px solid var(--border); background: var(--secondary); border-radius: var(--radius); padding: 2rem; text-align: center; }
@media (min-width: 768px) { .cta-box { padding: 3rem; } }
.cta-box p { margin-inline: auto; margin-top: 1.5rem; max-width: 36rem; color: var(--muted-foreground); }

/* Page banner */
.page-banner { border-bottom: 1px solid var(--border); background: var(--secondary); }
.page-banner .inner { padding-block: 3rem; }
.page-banner h1 { font-size: 1.875rem; }
@media (min-width: 768px) { .page-banner h1 { font-size: 2.25rem; } }
.page-banner p { margin-top: 1rem; max-width: 48rem; color: var(--muted-foreground); }

/* Detail layout */
.detail-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .detail-grid.svc { grid-template-columns: 1fr 280px; }
  .detail-grid.form { grid-template-columns: 1fr 360px; }
}
.prose p { margin-bottom: 1.25rem; line-height: 1.7; color: var(--muted-foreground); }

.aside-box { border: 1px solid var(--border); background: var(--secondary); border-radius: var(--radius); padding: 1.25rem; }
.aside-box h2 { font-family: var(--font-display); font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; }
.aside-list { margin-top: .75rem; list-style: none; }
.aside-list a { display: flex; align-items: center; gap: .5rem; padding-block: .375rem; font-size: .875rem; color: var(--muted-foreground); }
.aside-list a:hover { color: var(--brand); }
.aside-list .chk { width: .9rem; height: .9rem; color: var(--primary); }

.check-list { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.check-list li { display: flex; align-items: flex-start; gap: .75rem; color: var(--muted-foreground); line-height: 1.6; }
.check-list .chk { width: 1rem; height: 1rem; margin-top: .25rem; color: var(--primary); flex-shrink: 0; }

.detail-block { margin-bottom: 2.5rem; }
.detail-footer { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); padding-top: 2rem; }

/* Logo gallery */
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-fig { border: 1px solid var(--border); background: var(--background); border-radius: var(--radius); padding: 1rem; text-align: center; }
.logo-fig img { height: 6rem; width: 100%; object-fit: contain; }
.logo-fig figcaption { margin-top: .75rem; font-family: var(--font-display); font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }

/* Portfolio */
.pf-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pf-grid { grid-template-columns: repeat(3, 1fr); } }
.pf-card { overflow: hidden; border: 1px solid var(--border); background: var(--background); border-radius: var(--radius); }
.pf-thumb { aspect-ratio: 3/2; display: flex; align-items: center; justify-content: center; background: var(--primary-10); }
.pf-num { font-family: var(--font-display); font-size: 2.25rem; text-transform: uppercase; color: var(--primary-40); }
.pf-card .pf-body { border-top: 1px solid var(--border); padding: 1rem; }
.pf-card h2 { font-family: var(--font-display); font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; }

/* Forms */
.field label { font-family: var(--font-display); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; display: block; }
.field input, .field textarea, textarea.field-input {
  margin-top: .375rem; width: 100%; border: 1px solid var(--border); background: var(--background);
  border-radius: var(--radius); padding: .75rem; font-size: .875rem; font-family: var(--font-sans);
  outline: none; transition: border-color .2s; color: var(--foreground);
}
.field input:focus, .field textarea:focus, textarea.field-input:focus { border-color: var(--brand); }
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-block { margin-bottom: 1rem; }

.alert-success { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--primary-40); background: var(--primary-10); border-radius: var(--radius); padding: 1rem; font-size: .875rem; margin-bottom: 1.5rem; }
.alert-success svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.alert-error { border-color: var(--brand); background: rgba(207,90,42,.08); color: var(--brand); }
.alert-error svg { color: var(--brand); }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.info-card.sec { background: var(--secondary); }
.info-card h2 { font-family: var(--font-display); font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; }
.info-list { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; font-size: .875rem; }
.info-list li, .info-list a { display: flex; align-items: flex-start; gap: .75rem; color: var(--muted-foreground); }
.info-list a:hover { color: var(--brand); }
.info-list .ico { color: var(--brand); margin-top: .15rem; }
.info-card p { margin-top: .75rem; font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); }

/* Footer */
.site-footer { margin-top: 5rem; background: var(--foreground); color: rgba(255,255,255,.8); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-title { font-family: var(--font-display); font-size: 1.125rem; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.footer-tagline { margin-top: .75rem; font-size: .875rem; line-height: 1.6; }
.footer-address { margin-top: 1rem; display: inline-flex; align-items: flex-start; gap: .5rem; font-size: .875rem; line-height: 1.5; }
.footer-heading { font-family: var(--font-display); font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.footer-list { list-style: none; margin-top: .75rem; display: flex; flex-direction: column; gap: .375rem; font-size: .875rem; }
.footer-list a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .uai-container { padding-block: 1rem; text-align: center; font-size: .75rem; color: rgba(255,255,255,.6); }
