:root {
  --brand-orange: #ff830f;
  --brand-orange-deep: #ea6f00;
  --brand-ink: #121212;
  --brand-ink-soft: #232323;
  --brand-sand: #fff6ec;
  --brand-cream: #fffdf9;
  --brand-line: rgba(18, 18, 18, 0.1);
  --text-main: #1a1a1a;
  --text-soft: #575757;
  --white: #ffffff;
  --shadow-xl: 0 30px 80px rgba(18, 18, 18, 0.14);
  --shadow-md: 0 18px 45px rgba(18, 18, 18, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 131, 15, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 131, 15, 0.12), transparent 24%),
    linear-gradient(180deg, #fff8f1 0%, #fffdf9 34%, #ffffff 100%);
}

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

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

.shell {
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.shell::before,
.shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.55;
}

.shell::before {
  width: 260px;
  height: 260px;
  top: 110px;
  left: -80px;
  background: rgba(255, 131, 15, 0.24);
}

.shell::after {
  width: 280px;
  height: 280px;
  right: -90px;
  top: 520px;
  background: rgba(18, 18, 18, 0.08);
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

/* Topbar / navegação */

.topbar {
  padding: 24px 0 12px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 18, 18, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(18, 18, 18, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: 140px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--brand-ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--brand-sand);
  color: var(--brand-orange-deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--brand-ink);
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease;
}

.top-link:hover,
.top-link:focus-visible {
  transform: translateY(-2px);
  background: #000;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--brand-line);
  background: var(--white);
  cursor: pointer;
}

.mini-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand-orange-deep);
}

/* Botões */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--brand-ink);
  background: linear-gradient(135deg, #ff9d3d, var(--brand-orange));
  box-shadow: 0 16px 34px rgba(255, 131, 15, 0.34);
}

.button-secondary {
  color: var(--white);
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-outline {
  color: var(--brand-ink);
  background: transparent;
  border: 1px solid var(--brand-line);
}

/* Hero genérico */

.hero {
  padding: 24px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  padding: 42px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #2c2c2c 0%, #161616 55%, #050505 100%);
  color: var(--white);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto -70px -110px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 131, 15, 0.85), rgba(255, 131, 15, 0));
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 24px 24px auto auto;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(12deg);
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 16px 0 18px;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: var(--brand-orange);
}

.hero p {
  max-width: 56ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.hero p + p {
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-point {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-point strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  color: var(--brand-orange);
}

.hero-point span {
  display: block;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.hero-visual {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
}

.visual-card,
.highlight-card,
.timeline-card,
.reg-card,
.cta-card,
.info-card,
.post-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 18, 18, 0.06);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.visual-card {
  overflow: hidden;
  min-height: 100%;
}

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

.hero-carousel {
  position: relative;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
}

.hero-carousel-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.hero-carousel-slide-logo img {
  object-fit: contain;
  background: #fff;
  padding: 60px;
}

.hero-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(18, 18, 18, 0.15);
  cursor: pointer;
}

.hero-carousel-dot.active {
  background: var(--brand-orange);
}

.highlight-card {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 131, 15, 0.14), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.highlight-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--brand-ink);
}

.highlight-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

/* Seções genéricas */

.section {
  padding: 18px 0 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 46ch;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timeline-card {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-orange), #ffb063);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  background: rgba(255, 131, 15, 0.12);
  color: var(--brand-orange-deep);
}

.timeline-card h3 {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
}

.timeline-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.reg-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.4fr);
  gap: 24px;
  align-items: start;
}

.reg-card {
  padding: 30px;
}

.reg-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--brand-line);
}

.reg-card-header h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.3rem;
}

.reg-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand-sand);
  color: var(--brand-orange-deep);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reg-list {
  display: grid;
  gap: 16px;
}

.reg-item {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(18, 18, 18, 0.06);
  background: linear-gradient(180deg, #ffffff, #fffaf4);
}

.reg-item h4 {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
  color: var(--brand-orange-deep);
}

.reg-item p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.75;
}

.aside-stack {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 16px;
}

.cta-card {
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(18, 18, 18, 0.97), rgba(40, 40, 40, 0.92)),
    var(--brand-ink);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.cta-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 131, 15, 0.18);
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card h3 {
  margin: 12px 0 10px;
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  line-height: 1.2;
}

.cta-card p,
.note-card p {
  margin: 0;
  line-height: 1.7;
}

.cta-card-orange {
  background: linear-gradient(160deg, #ffc266 0%, var(--brand-orange) 45%, #c65400 100%);
  color: var(--brand-ink);
}

.cta-card-orange::after {
  background: rgba(18, 18, 18, 0.1);
}

.cta-card-orange .mini-label {
  color: var(--brand-ink);
  opacity: 0.7;
}

.cta-card-orange p {
  color: rgba(18, 18, 18, 0.78);
}

.button-dark {
  color: var(--white);
  background: var(--brand-ink);
}

.note-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--brand-sand);
  border: 1px solid rgba(255, 131, 15, 0.16);
}

.note-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: var(--brand-ink);
}

/* Cards de informação (Quem Somos, valores etc.) */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.info-card {
  padding: 26px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  color: var(--brand-ink);
}

.info-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.timeline-vertical {
  display: grid;
  gap: 16px;
}

.timeline-vertical-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--brand-line);
}

.timeline-vertical-item:last-child {
  border-bottom: none;
}

.timeline-vertical-item .year {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brand-orange-deep);
}

.timeline-vertical-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Blog */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card-cover {
  height: 180px;
  overflow: hidden;
  background: var(--brand-sand);
}

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

.post-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card-body h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
}

.post-card-body p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
}

.post-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-orange-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card-body .button {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 18px;
}

.post-article {
  padding: 40px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 18, 18, 0.06);
  box-shadow: var(--shadow-md);
}

.post-article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}

.post-article h1 {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.post-article-content {
  margin-top: 24px;
  color: var(--text-main);
  line-height: 1.8;
  font-size: 1.05rem;
}

.post-article-content h2,
.post-article-content h3 {
  font-family: "Sora", sans-serif;
  margin-top: 32px;
}

.post-article-content img {
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.post-article-content p {
  margin: 0 0 18px;
}

.empty-state {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--brand-sand);
  border: 1px solid rgba(255, 131, 15, 0.16);
  text-align: center;
  color: var(--text-soft);
}

/* Admin */

.admin-shell {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 16px;
}

.admin-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-md);
}

.admin-card h1 {
  font-family: "Sora", sans-serif;
  margin-top: 0;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px;
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-xl);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo img {
  width: 130px;
  margin: 0 auto 12px;
}

.login-logo h1 {
  font-family: "Sora", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
  white-space: nowrap;
  margin: 0 0 4px;
}

.login-logo p {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-orange-deep);
  margin: 0;
}

.login-card .form-field input {
  font-size: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--brand-line);
  font-family: inherit;
  font-size: 1rem;
}

.form-field textarea {
  min-height: 260px;
  resize: vertical;
  font-family: monospace;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-weight: 600;
}

.alert-error {
  background: #fdeceb;
  color: #b3261e;
  border: 1px solid #f3c0bc;
}

.alert-success {
  background: #eaf7ee;
  color: #1e7a34;
  border: 1px solid #bfe6c9;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--brand-line);
  font-size: 0.94rem;
}

.admin-table-actions {
  display: flex;
  gap: 10px;
}

.admin-table-actions a,
.admin-table-actions button {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-orange-deep);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-published {
  background: #eaf7ee;
  color: #1e7a34;
}

.badge-draft {
  background: #fff2e0;
  color: var(--brand-orange-deep);
}

/* Footer */

.footer {
  padding: 32px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 40px;
  border-radius: 28px;
  background: var(--brand-ink);
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-family: "Sora", sans-serif;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-grid li,
.footer-grid a {
  overflow-wrap: anywhere;
}

.footer-grid a:hover {
  color: var(--brand-orange);
}

.footer-bottom {
  margin-top: 18px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.footer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--brand-ink);
  color: rgba(255, 255, 255, 0.82);
}

.footer-card strong {
  color: var(--white);
}

@media (max-width: 980px) {
  .hero-grid,
  .reg-wrap,
  .timeline {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-card,
  .footer-grid,
  .topbar-inner {
    align-items: start;
    flex-direction: column;
  }

  .hero-point {
    min-height: 100%;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .aside-stack {
    position: static;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 3;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .topbar-inner {
    flex-wrap: wrap;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .hero-copy,
  .reg-card,
  .timeline-card,
  .highlight-card,
  .cta-card,
  .note-card,
  .post-article {
    padding: 22px;
  }

  .topbar {
    padding-top: 14px;
  }

  .brand img {
    width: 120px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 14vw, 3.2rem);
  }

  .reg-card-header {
    align-items: start;
    flex-direction: column;
  }

  .visual-card img {
    min-height: 260px;
  }
}
