/* Latino Show Cup — latinoshow.fi
   Brändivärit logosta: musta, vihreä, magenta, oranssi */

:root {
  --black: #0d0d0d;
  --white: #ffffff;
  --green: #78b41e;
  --magenta: #e60078;
  --orange: #fab400;
  --grey: #4a4a4a;
  --grey-light: #f4f4f4;
  --max-width: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.3rem; color: var(--magenta); }

p { margin: 0 0 1em; }

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--orange);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.brand img { height: 52px; width: auto; }
.brand:hover { text-decoration: none; }

nav.main-nav {
  display: flex;
  align-items: center;
}

nav.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav li { position: relative; }

nav.main-nav > ul > li > a {
  color: var(--white);
  display: block;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li.active > a {
  color: var(--orange);
  text-decoration: none;
}

.submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--black);
  min-width: 200px;
  border-top: 3px solid var(--magenta);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

nav.main-nav li:hover .submenu { display: block; }

.submenu li a {
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--white);
}

.submenu li a:hover {
  color: var(--orange);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: 70px 0 60px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(230,0,120,0.28), rgba(120,180,30,0.22) 45%, rgba(250,180,0,0.22));
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-logo { max-width: 260px; margin: 0 auto 24px; }

.hero-text { text-align: center; max-width: 780px; margin: 0 auto; }

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

.lead {
  font-size: 1.15rem;
  color: #e9e9e9;
}

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--magenta); color: var(--white); }
.btn-primary:hover { background: #c40064; text-decoration: none; }

.btn-secondary { background: var(--green); color: var(--black); }
.btn-secondary:hover { background: #619417; text-decoration: none; }

.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); text-decoration: none; }

/* ---------- SECTIONS ---------- */
section { padding: 56px 0; }

.section-alt { background: var(--grey-light); }

.section-dark {
  background: var(--black);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark h3 { color: var(--orange); }

.eyebrow {
  display: inline-block;
  color: var(--magenta);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

/* ---------- CARDS / GRID ---------- */
.grid {
  display: grid;
  gap: 22px;
}

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

.card {
  background: var(--white);
  border: 1px solid #e4e4e4;
  border-radius: var(--radius);
  padding: 24px;
  border-top: 5px solid var(--green);
}

.card:nth-child(3n+2) { border-top-color: var(--magenta); }
.card:nth-child(3n+3) { border-top-color: var(--orange); }

.card h3 { margin-top: 0; }

.card-link { font-weight: 700; }

/* ---------- GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* ---------- LIGHTBOX ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--magenta);
}

.lightbox-close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-close { width: 36px; height: 36px; font-size: 1.4rem; }
}

/* ---------- TABLE ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #ddd;
}

th {
  background: var(--black);
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

tr:nth-child(even) { background: var(--grey-light); }

/* ---------- LIST ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 0 0 1.2em;
}

.tag-list li {
  background: var(--grey-light);
  border-left: 4px solid var(--magenta);
  padding: 8px 14px;
  font-size: 0.92rem;
}

/* ---------- PLACEHOLDER NOTE ---------- */
.placeholder {
  background: #fff7e0;
  border: 1px dashed var(--orange);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: #6b5100;
  margin: 20px 0;
}

.placeholder strong { color: var(--magenta); }

/* ---------- PAGE HEADER (subpages) ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 46px 0;
  border-bottom: 4px solid var(--magenta);
}
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero .breadcrumb { color: #bbb; font-size: 0.85rem; margin-bottom: 10px; }
.page-hero .breadcrumb a { color: var(--orange); }

/* ---------- FORM ---------- */
form.registration {
  background: var(--white);
  border: 1px solid #e4e4e4;
  border-radius: var(--radius);
  padding: 28px;
  max-width: 640px;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c9c9c9;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row textarea { min-height: 100px; }

.form-note {
  font-size: 0.82rem;
  color: var(--grey);
  margin-top: 10px;
}

/* ---------- FOOTER ---------- */
footer.site-footer {
  background: var(--black);
  color: #ccc;
  padding: 40px 0 24px;
  border-top: 4px solid var(--green);
}

footer.site-footer a { color: var(--orange); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.footer-grid h4 { color: var(--white); font-size: 0.85rem; }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
  font-size: 0.8rem;
  text-align: center;
  color: #888;
}

/* ---------- YEAR TABS ---------- */
.year-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.year-tabs a {
  padding: 10px 20px;
  background: var(--grey-light);
  border-radius: 999px;
  font-weight: 800;
  color: var(--black);
  text-decoration: none;
}

.year-tabs a.active,
.year-tabs a:hover {
  background: var(--magenta);
  color: var(--white);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav ul { flex-direction: column; width: 100%; }
  nav.main-nav > ul > li > a { padding: 14px 24px; }
  .submenu { position: static; border-top: none; box-shadow: none; padding-left: 16px; }
  .site-header .container { flex-wrap: wrap; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
