:root {
  --ink: #2c2928;
  --muted: #706b68;
  --line: #e7e2df;
  --soft: #faf8f6;
  --orange: #eb4000;
  --orange-dark: #c83300;
  --background: #ffffff;
  --foreground: var(--ink);
  --card: #ffffff;
  --card-foreground: var(--ink);
  --popover: #ffffff;
  --popover-foreground: var(--ink);
  --primary: var(--orange);
  --primary-foreground: #ffffff;
  --secondary: var(--soft);
  --secondary-foreground: var(--ink);
  --muted-foreground: var(--muted);
  --accent: #fff2ec;
  --accent-foreground: var(--orange-dark);
  --destructive: #b42318;
  --border: var(--line);
  --input: #d9d4d1;
  --ring: var(--orange);
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--input);
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(231, 226, 223, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand-link {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--orange);
}

.hero {
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 5vw clamp(3.5rem, 7vw, 6rem);
}

.hero-orbit {
  position: absolute;
  top: 15%;
  right: 4%;
  width: clamp(170px, 25vw, 340px);
  aspect-ratio: 1;
  border: 1px solid #f1d7cc;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hero-orbit::before {
  inset: 16%;
  border: 1px solid #f6e8e2;
}

.hero-orbit::after {
  top: 7%;
  right: 18%;
  width: 10px;
  height: 10px;
  background: var(--orange);
  box-shadow: 0 0 0 7px #fff2ec;
}

.event-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 960px);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.event-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(300px, 1.2fr);
  width: min(100%, 960px);
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-facts > div {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 1.4rem 1.3rem 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.event-facts > div + div {
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

.event-facts svg {
  width: 21px;
  color: var(--orange);
}

.event-facts span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.event-facts small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.75fr 1fr 1.4fr auto;
  align-items: center;
  gap: 2rem;
  width: calc(100% - 4vw);
  margin: clamp(3rem, 6vw, 5.5rem) 0 0 4vw;
  padding: 1.7rem 2rem;
  background: var(--ink);
  color: #ffffff;
}

.price-strip > p {
  margin: 0;
  color: #bdb7b4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.price-strip > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-value {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
}

.price-label {
  color: #c7c2bf;
  font-size: 0.74rem;
}

.price-strip > a {
  padding: 0.9rem 1.15rem;
  background: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.price-strip > a:hover,
.price-strip > a:focus-visible {
  background: #ff4a08;
}

.section-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 8rem) 5vw;
  scroll-margin-top: 68px;
}

.schedule-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading > p,
.placeholder-section > p {
  margin: 0.45rem 0 0;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-heading > span {
  grid-column: 2;
  max-width: 620px;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.day-card {
  padding: 2rem clamp(1.1rem, 2vw, 2rem) 2.5rem;
}

.day-card + .day-card {
  border-left: 1px solid var(--line);
}

.day-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 98px;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.day-card > header > span {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.day-card > header > div {
  text-align: right;
}

.day-card > header strong {
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.06em;
}

.day-card > header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.day-card ol {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.day-card li {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.8rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.day-card li:last-child {
  border-bottom: 0;
}

.day-card li svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--orange);
}

.day-card time {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.day-card li p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.5;
}

.placeholder-section {
  border-top: 1px solid var(--line);
}

.placeholder-section h2 {
  max-width: 760px;
  margin: 0.65rem 0 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.placeholder-section > span {
  color: var(--muted);
}

.registration-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.registration-intro {
  position: sticky;
  top: 110px;
}

.registration-intro > p,
.regulation-section p {
  margin: 0 0 0.8rem;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.registration-intro h2,
.regulation-section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.registration-intro > span,
.regulation-section > div > span {
  display: block;
  max-width: 560px;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.registration-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2.2rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.registration-rules > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.2rem 1rem 1.2rem 0;
}

.registration-rules > div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.registration-rules strong {
  font-size: 1.25rem;
}

.registration-rules span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.minor-recommendation {
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--orange);
  background: #fff8f5;
  color: #514b48;
  font-size: 0.8rem;
  line-height: 1.65;
}

.minor-recommendation strong {
  color: var(--ink);
}

.registration-form {
  padding: clamp(1.4rem, 3.2vw, 2.6rem);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 18px 18px 0 var(--soft);
}

.form-price {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 2.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.form-price > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-price strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--orange);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.045em;
}

.form-price small {
  margin-top: 0.4rem;
  color: var(--ink);
  font-size: 0.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label:not(.upload-field) {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
}

.field-hint {
  margin: -0.1rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.optional-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.minor-guidance {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #f1d7cc;
  background: #fff8f5;
  color: #6d3320;
  font-size: 0.76rem;
  line-height: 1.6;
}

.minor-guidance.active {
  display: block;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field input:not([type="file"]) {
  min-height: 48px;
  border-color: var(--input);
  border-radius: 0;
  background: #ffffff;
  font-size: 0.9rem;
  box-shadow: none;
}

.field input:not([type="file"]):focus-visible {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px #fff2ec;
}

.upload-field {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 92px;
  padding: 1.1rem 1.2rem;
  border: 1px dashed #c9c2be;
  background: var(--soft);
  cursor: pointer;
}

.upload-field:hover,
.upload-field:focus-within {
  border-color: var(--orange);
  background: #fff8f5;
}

.upload-field svg {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  color: var(--orange);
}

.upload-field span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.25rem;
}

.upload-field strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-field small {
  color: var(--muted);
  font-size: 0.7rem;
}

.privacy-note {
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 50px;
  margin-top: 1.35rem;
  border-radius: 0;
  background: var(--orange);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.submit-button .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.submit-button:hover {
  background: var(--orange-dark);
}

.submit-button svg {
  width: 17px;
}

.form-message {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-message.success {
  background: #ecfdf3;
  color: #027a48;
}

.form-message.error {
  background: #fff1f0;
  color: #b42318;
}

.form-message:empty {
  display: none;
}

.form-message svg {
  flex: 0 0 auto;
  width: 18px;
}

.regulation-section {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.regulation-number {
  color: #f2ece9;
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.coming-soon {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 5vw 3rem;
  border-top: 1px solid var(--line);
}

footer span {
  font-weight: 800;
  letter-spacing: 0.12em;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .price-strip {
    grid-template-columns: 1fr 1fr;
  }

  .price-strip > p {
    grid-column: 1 / -1;
  }

  .price-strip > a {
    text-align: center;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .day-card + .day-card {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .registration-section {
    grid-template-columns: 1fr;
  }

  .registration-intro {
    position: static;
  }

  .regulation-section {
    grid-template-columns: auto 1fr;
  }

  .coming-soon {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 60px;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-orbit {
    top: 5%;
    right: -20%;
  }

  .event-facts {
    grid-template-columns: 1fr;
  }

  .event-facts > div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .price-strip {
    width: 100%;
    margin-left: 0;
    padding: 1.5rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-heading > span {
    grid-column: 1;
  }

  .form-grid,
  .registration-rules {
    grid-template-columns: 1fr;
  }

  .registration-rules > div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .registration-form {
    box-shadow: 9px 9px 0 var(--soft);
  }

  .form-price {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .form-price strong {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.6rem;
  }

  .regulation-section {
    grid-template-columns: 1fr;
  }

  .regulation-number {
    font-size: 5rem;
  }

  .coming-soon {
    grid-column: 1;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Atualização EPAST 2026: oficinas, inscrições e regulamento de pôsteres */
.workshops-section,
.application-section,
.poster-regulation {
  border-top: 1px solid var(--line);
}

.workshop-list {
  border-top: 1px solid var(--ink);
}

.workshop-list article {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.workshop-list article > span {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.workshop-list h3 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
}

.workshop-list p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.workshop-list .workshop-summary {
  max-width: 850px;
  color: var(--ink);
}

.regulation-full {
  display: block;
}

.regulation-full .regulation-text,
.structured-regulation {
  max-width: 980px;
  margin: 0 auto;
}

.section-kicker {
  width: 100%;
  text-align: center;
}

.regulation-full h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.regulation-text {
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.75;
}

.poster-regulation {
  display: block;
  border-bottom: 0;
}

.poster-regulation .section-heading {
  align-items: start;
}

.structured-regulation h3 {
  margin: 2rem 0 0.7rem;
  color: var(--ink);
  font-size: 1.15rem;
}

.structured-regulation p,
.structured-regulation li {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.7;
  text-transform: none;
}

.structured-regulation p {
  margin: 0;
}

.structured-regulation ul {
  margin: 0;
  padding-left: 1.25rem;
}

.structured-regulation li + li {
  margin-top: 0.5rem;
}

.application-section > .registration-form {
  max-width: 980px;
  margin: 0 auto;
}

.secondary-form {
  box-shadow: 14px 14px 0 var(--soft);
}

.form-subheading {
  margin-top: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--ink);
}

.form-subheading:first-child {
  margin-top: 0;
}

.form-subheading h3 {
  margin: 0;
  font-size: 1rem;
}

.field input:not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--input);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  box-shadow: none;
}

.field select {
  min-height: 48px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}

.field input:not([type="file"]):focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--orange);
  outline: 0;
  box-shadow: 0 0 0 3px #fff2ec;
}

.choice-group,
.agreement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
}

.choice-group legend,
.agreement-list legend {
  padding: 0 0.4rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
}

.choice-group label,
.agreement-list label,
.agreement-single {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.5;
}

.agreement-list {
  flex-direction: column;
}

.choice-group input,
.agreement-list input,
.agreement-single input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0.05rem 0 0;
  padding: 0;
  accent-color: var(--orange);
}

.template-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto 2rem;
}

.template-downloads a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  text-decoration: none;
}

.template-downloads a:hover,
.template-downloads a:focus-visible {
  border-color: var(--orange);
  background: #fff8f5;
}

.template-downloads strong {
  color: var(--orange);
  font-size: 0.9rem;
}

.template-downloads span {
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 760px) {
  .site-header nav {
    gap: 0.8rem;
  }

  .site-header nav a {
    font-size: 0.72rem;
  }

  .template-downloads {
    grid-template-columns: 1fr;
  }

  .workshop-list article {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }
}
