/* =========================================================
   Utenos Titanai — shared stylesheet
   ========================================================= */

:root {
  --green: #63af4b;
  --green-bright: #86d968;
  --green-dark: #3f7a2f;
  --black: #0d0f0c;
  --charcoal: #1b1e19;
  --white: #ffffff;
  --off-white: #f4f6f2;
  --gray: #6b6f68;
  --line: #e3e6df;
  --shadow: 0 10px 30px rgba(13, 15, 12, 0.12);
  --radius: 14px;
  --max-width: 1180px;
  --font: 'Barlow Condensed', 'Oswald', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--off-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  line-height: 1.1;
  color: var(--black);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--charcoal); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(99, 175, 75, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green);
  color: var(--black);
  box-shadow: 0 8px 20px rgba(99, 175, 75, 0.35);
}
.btn-primary:hover { background: var(--green-bright); }
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: var(--charcoal); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn-outline-dark:hover { background: var(--black); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 3px solid var(--green);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand img { height: 52px; width: auto; }
.brand-text {
  font-family: var(--font);
  text-transform: uppercase;
  line-height: 1;
}
.brand-text .t1 { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--green-bright); display: block; }
.brand-text .t2 { font-size: 1.35rem; font-weight: 700; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font);
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--white);
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); color: var(--green-bright); }
.nav-links a.active { color: var(--black); background: var(--green); }

.nav-extras {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle button.active { background: var(--green); color: var(--black); }

.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: background 0.15s ease, color 0.15s ease, transform .15s ease;
}
.socials a:hover { background: var(--green); color: var(--black); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 18px;
    display: none;
    border-bottom: 3px solid var(--green);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-extras { order: 3; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(99,175,75,0.35), transparent 55%), var(--black);
  color: var(--white);
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { max-width: 340px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 220px; }
}

.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 46px;
  text-align: center;
  position: relative;
  border-bottom: 3px solid var(--green);
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 60ch; margin: 0 auto; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 26px;
  box-shadow: var(--shadow);
}

.stat-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.stat-card .num {
  font-family: var(--font);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green-bright);
  display: block;
}
.stat-card .label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
}

/* ---------- Trainer / player cards ---------- */
.person-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.person-photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--green), var(--black));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font);
  font-size: 3rem;
  font-weight: 700;
  overflow: hidden;
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ---------- Team photo banner ---------- */
.team-photo-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-photo-banner img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  display: block;
}
.team-photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(13,15,12,0.88), rgba(13,15,12,0));
  color: var(--white);
  padding: 60px 28px 20px;
}
.team-photo-caption .eyebrow { margin-bottom: 8px; }
.team-photo-caption p { color: rgba(255,255,255,0.85); max-width: 60ch; margin: 0; }
.history-photo {
  border-radius: 10px;
  overflow: hidden;
  margin-top: 14px;
  max-width: 420px;
}
.history-photo img { width: 100%; display: block; }
.person-body { padding: 22px; }
.person-role {
  display: inline-block;
  font-family: var(--font);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(99,175,75,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.person-body h3 { margin-bottom: 4px; }
.person-body .meta { color: var(--gray); font-size: 0.88rem; margin-bottom: 10px; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
thead th {
  background: var(--black);
  color: var(--white);
  text-align: left;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  padding: 14px 16px;
  white-space: nowrap;
}
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  white-space: nowrap;
}
tbody tr:hover { background: rgba(99,175,75,0.06); }
tbody tr:last-child td { border-bottom: none; }
.pos-pill {
  display: inline-block;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Schedule ---------- */
.game-row {
  display: grid;
  grid-template-columns: 130px 1fr auto 1fr 90px;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.game-row:last-child { border-bottom: none; }
.game-date {
  font-family: var(--font);
  font-weight: 700;
  color: var(--gray);
  font-size: 0.85rem;
  text-transform: uppercase;
}
.game-team { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.game-team.away { justify-content: flex-end; text-align: right; }
.game-score {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--off-white);
  border-radius: 8px;
  padding: 6px 14px;
  min-width: 74px;
  text-align: center;
}
.badge {
  display: inline-block;
  font-family: var(--font);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge-win { background: rgba(99,175,75,0.15); color: var(--green-dark); }
.badge-loss { background: rgba(200,60,60,0.12); color: #b33636; }
.badge-upcoming { background: rgba(20,20,20,0.08); color: var(--charcoal); }
.badge-home { background: var(--black); color: var(--white); }

@media (max-width: 700px) {
  .game-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }
  .game-team.away { justify-content: center; text-align: center; }
}

/* ---------- Timeline (History) ---------- */
.timeline {
  position: relative;
  margin-left: 10px;
  padding-left: 30px;
  border-left: 3px solid var(--green);
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--black);
}
.timeline-year {
  font-family: var(--font);
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.3rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green);
  color: var(--black);
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: var(--black); }
.cta-band p { color: rgba(13,15,12,0.75); max-width: 60ch; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: var(--white); margin-bottom: 14px; font-size: 1rem; }
.footer-grid a { display: block; padding: 4px 0; color: rgba(255,255,255,0.7); }
.footer-grid a:hover { color: var(--green-bright); }
.site-footer p { color: rgba(255,255,255,0.7); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 46px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
[data-lang-hide] { display: none; }
