:root {
  --red: #a12e29;
  --red-bright: #d8463f;
  --ink: #100d0c;
  --ink-2: #1b1514;
  --cream: #fbf4e7;
  --paper: #fff9ef;
  --muted: #d8c7b3;
  --line: rgba(255, 244, 224, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --font-display: "Archivo Black", Impact, sans-serif;
  --font-body: "IBM Plex Sans", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(161, 46, 41, 0.34), transparent 30rem),
    linear-gradient(180deg, #0c0908 0%, #171110 46%, #fbf4e7 46%, #fbf4e7 100%);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

code {
  border: 1px solid rgba(161, 46, 41, 0.26);
  border-radius: 6px;
  background: rgba(161, 46, 41, 0.08);
  color: #6f1f1b;
  font: 0.92em Consolas, "Liberation Mono", monospace;
  padding: 0.1rem 0.28rem;
}

:focus-visible {
  outline: 3px solid #f4c15d;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  padding: 0.75rem 1rem;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 84dvh;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 48%;
  filter: saturate(0.95) contrast(1.08);
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 9, 8, 0.96) 0%, rgba(12, 9, 8, 0.74) 48%, rgba(12, 9, 8, 0.18) 100%),
    linear-gradient(180deg, rgba(12, 9, 8, 0.42) 0%, rgba(12, 9, 8, 0.88) 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
}

.brand img {
  width: clamp(74px, 12vw, 112px);
  height: auto;
}

.topbar__cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(16, 13, 12, 0.5);
  color: var(--cream);
  font-weight: 700;
  padding: 0.68rem 1rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.hero__content {
  width: min(1120px, 100%);
  margin: 0 auto;
  align-self: center;
  padding-block: clamp(2.4rem, 5vw, 4rem) clamp(1.2rem, 3vw, 2.2rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #f3c25d;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow--red {
  color: var(--red);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.98;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.1rem, 8vw, 5.25rem);
}

h2 {
  max-width: 720px;
  color: inherit;
  font-size: clamp(2.1rem, 7vw, 4.6rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
  line-height: 1.2;
}

.hero__copy {
  max-width: 620px;
  margin: 1.25rem 0 0;
  color: rgba(251, 244, 231, 0.88);
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 800 1rem/1 var(--font-body);
  padding: 0.95rem 1.22rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--red);
  color: #fffdf8;
  box-shadow: 0 14px 34px rgba(161, 46, 41, 0.42);
}

.button--primary:hover {
  background: #bf3731;
}

.button--ghost {
  border: 1px solid rgba(251, 244, 231, 0.34);
  background: rgba(251, 244, 231, 0.08);
  color: var(--cream);
}

.hero__card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: rgba(251, 244, 231, 0.78);
  padding-block: 1rem 0.25rem;
}

.hero__card strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2.45rem);
  line-height: 1;
}

@media (min-width: 841px) {
  .hero__card {
    position: absolute;
    right: clamp(2rem, 9vw, 7.6rem);
    bottom: 1.4rem;
    width: min(420px, 34vw);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(16, 13, 12, 0.44);
    padding: 1rem;
    backdrop-filter: blur(10px);
  }

  .hero__card strong {
    font-size: clamp(1.3rem, 2.2vw, 2rem);
  }
}

.section {
  padding: clamp(3.8rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

.section--intro,
.section--matches,
.rules,
.footer {
  background: var(--paper);
  color: var(--ink);
}

.section__header {
  width: min(1120px, 100%);
  margin: 0 auto 2rem;
}

.section__header p:not(.eyebrow) {
  max-width: 680px;
  color: #5e504b;
  font-size: 1.05rem;
}

.steps,
.match-grid,
.rule-list {
  width: min(1120px, 100%);
  display: grid;
  gap: 1rem;
  margin: 0 auto;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.steps article,
.match-card,
.rule-list article {
  border: 1px solid rgba(16, 13, 12, 0.12);
  border-radius: var(--radius);
  background: #fffaf0;
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(42, 27, 20, 0.08);
}

.steps span {
  display: block;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.steps p,
.match-card p,
.rule-list p {
  margin: 0;
  color: #5e504b;
}

.match-grid {
  grid-template-columns: repeat(3, 1fr);
}

.match-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.match-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--red);
}

.match-card__status {
  width: max-content;
  border-radius: 999px;
  background: rgba(161, 46, 41, 0.1);
  color: #76231f;
  font-weight: 800;
  padding: 0.38rem 0.64rem;
}

.match-card__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1;
}

.match-card__meta {
  display: grid;
  gap: 0.24rem;
  font-weight: 700;
}

.match-card .button {
  width: 100%;
}

.button--disabled {
  cursor: not-allowed;
  opacity: 0.48;
  pointer-events: none;
}

.match-card--sold-out .match-card__status {
  background: rgba(16, 13, 12, 0.1);
  color: #5e504b;
}

.booking {
  background:
    linear-gradient(180deg, rgba(16, 13, 12, 0.88), rgba(16, 13, 12, 0.94)),
    url("./assets/cerveja-espaco77-hero.jpg") center / cover;
  color: var(--cream);
  padding: clamp(3.8rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

.booking__panel {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
  margin: 0 auto;
}

.booking__intro {
  position: sticky;
  top: 2rem;
}

.booking__intro p:not(.eyebrow) {
  max-width: 460px;
  color: rgba(251, 244, 231, 0.78);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.1);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 1.45rem);
  backdrop-filter: blur(12px);
}

.form__group {
  display: grid;
  gap: 0.4rem;
}

.form__group--wide,
.form__notice,
.form__confirmation,
.form__submit,
.form__status {
  grid-column: 1 / -1;
}

label {
  color: #fff7e8;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(251, 244, 231, 0.28);
  border-radius: var(--radius);
  background: rgba(11, 9, 8, 0.82);
  color: var(--cream);
  font: 500 1rem/1.4 var(--font-body);
  padding: 0.82rem 0.9rem;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

select {
  color-scheme: dark;
}

select:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

input::placeholder,
textarea::placeholder {
  color: rgba(251, 244, 231, 0.56);
}

.field-error {
  min-height: 1.15rem;
  color: #ffd1cf;
  font-weight: 700;
}

.form__notice {
  border-left: 4px solid #f3c25d;
  background: rgba(243, 194, 93, 0.12);
  color: rgba(251, 244, 231, 0.86);
  padding: 0.9rem 1rem;
}

.form__confirmation {
  display: grid;
  gap: 0.4rem;
}

.form__confirmation label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.75rem;
  align-items: start;
  color: rgba(251, 244, 231, 0.9);
  font-weight: 700;
  line-height: 1.45;
}

.form__confirmation input {
  width: 22px;
  min-height: 22px;
  margin-top: 0.1rem;
  accent-color: #a12e29;
}

.form__status {
  min-height: 1.45rem;
  margin: 0;
  color: #f3c25d;
  font-weight: 800;
}

.form__status--error {
  color: #ffd1cf;
}

.form__status--success {
  color: #bce8b5;
}

.form__status a {
  display: inline-block;
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.form__submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

@media (max-width: 640px) {
  .form__status a {
    margin-top: 0.45rem;
    min-height: 44px;
    padding: 0.65rem 0;
  }
}

.rule-list {
  grid-template-columns: repeat(4, 1fr);
}

.footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(16, 13, 12, 0.12);
  padding: 1.5rem clamp(1rem, 4vw, 2rem);
}

.footer img {
  width: 64px;
  height: 64px;
}

.footer p {
  margin: 0.15rem 0 0;
  color: #5e504b;
}

.footer a {
  color: #a12e29;
  font-weight: 800;
}

@media (max-width: 840px) {
  .hero {
    min-height: 88dvh;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(12, 9, 8, 0.84) 0%, rgba(12, 9, 8, 0.92) 78%, rgba(12, 9, 8, 0.98) 100%),
      linear-gradient(90deg, rgba(12, 9, 8, 0.74), rgba(12, 9, 8, 0.12));
  }

  .topbar__cta {
    font-size: 0.92rem;
    padding-inline: 0.85rem;
  }

  .hero__actions,
  .steps,
  .match-grid,
  .booking__panel,
  .rule-list,
  .form {
    grid-template-columns: 1fr;
  }

  .hero__actions .button {
    width: 100%;
  }

  .booking__intro {
    position: static;
  }
}

@media (max-width: 460px) {
  .topbar {
    align-items: flex-start;
  }

  .brand img {
    width: 72px;
  }

  .topbar__cta {
    max-width: 144px;
    text-align: center;
  }

  .section,
  .booking {
    padding-inline: 0.85rem;
  }

  .steps article,
  .match-card,
  .rule-list article,
  .form {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
