/* MLT Eventos Sport — minimal flex layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-accent: #e62e2e;
  --color-accent-dark: #b0342b;
  --color-text: #2d3748;
  --color-muted: #718096;
  --color-bg: #f7fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --max-width: 1100px;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  flex: 1;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo img {
  width: 110px;
  height: auto;
}

/* Nav */
.site-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-nav__list a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a202c;
  text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
  color: var(--color-accent);
  text-decoration: none;
}

/* Main */
.site-main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #fff;
  padding: 2.5rem 1.25rem;
  margin: -2rem -1.25rem 2rem;
  width: calc(100% + 2.5rem);
}

.page-banner h1 {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.page-banner p {
  max-width: var(--max-width);
  margin: 0.5rem auto 0;
  color: #cbd5e0;
  font-size: 1rem;
}

/* Events grid */
.events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-card {
  flex: 1 1 280px;
  max-width: 360px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.event-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.event-card__image {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: #edf2f7;
}

.event-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.event-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.event-card__title a {
  color: inherit;
  text-decoration: none;
}
.event-card__title a:hover {
  color: var(--color-accent);
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  text-decoration: none !important;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-top: auto;
}

.btn:hover {
  background: var(--color-accent-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent) !important;
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #fff !important;
}

/* Content blocks */
.content-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-block h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: #1a202c;
}

.content-block p {
  margin: 0 0 1rem;
}
.content-block p:last-child {
  margin-bottom: 0;
}

.content-block ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

/* Event detail */
.event-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.event-detail__media {
  flex: 1 1 280px;
  max-width: 400px;
}

.event-detail__info {
  flex: 1 1 300px;
}

.event-detail__category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.price-table th,
.price-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}
.price-table th {
  background: #edf2f7;
  font-weight: 600;
}

.notice {
  padding: 1rem 1.25rem;
  background: #edf2f7;
  border-left: 4px solid var(--color-accent);
  margin-bottom: 1.5rem;
}

/* Cart / checkout */
.cart-empty {
  text-align: center;
  padding: 2rem;
}

.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.checkout-steps li {
  flex: 1 1 140px;
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
}

.checkout-steps strong {
  display: block;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

/* Blog listing (r-template_blog) */
.blog-container {
  width: 100%;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.blog-card {
  /* flex: 1 1 280px; */
  /* max-width: 360px; */
  background: var(--color-surface);
  /* border: 1px solid var(--color-border); */
  border-radius: 4px;
  padding: 1.25rem;
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.blog-title a {
  color: #1a202c;
}
.blog-preview p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Footer */
.site-footer {
  background: #1a202c;
  color: #a0aec0;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer__social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer__social a {
  color: var(--color-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
}

/* Romli blocks */
.romlidata {
  padding: 1rem 0;
}

@media (max-width: 640px) {
  .site-main {
    padding: 1.5rem 1rem 2rem;
  }
  .page-banner {
    margin: -1.5rem -1rem 1.5rem;
    width: calc(100% + 2rem);
    padding: 2rem 1rem;
  }
  .event-card {
    max-width: 100%;
  }
}
