/* PXL-Voka Young & Strong — static site */

:root {
  --orange: #ff8c00;
  --orange-dark: #e07a00;
  --navy: #0b2442;
  --navy-deep: #071a31;
  --ink: #1f2933;
  --muted: #5b6672;
  --line: #e6e9ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 36, 66, .10);
  --shadow-lg: 0 20px 50px rgba(11, 36, 66, .18);
  --header-h: 76px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .6em; color: var(--navy); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.icon { width: 1em; height: 1em; flex: none; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  letter-spacing: .03em;
  padding: 13px 30px;
  border-radius: 999px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: #fff;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn[hidden] { display: none; }
.btn-outline { background: transparent; border-color: #fff; }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled { background: rgba(7, 26, 49, .96); box-shadow: 0 4px 20px rgba(0, 0, 0, .2); --header-h: 64px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 44px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: #fff; border-radius: 6px;
}
.nav a:hover, .nav a.active { color: var(--orange); }
.nav-social { display: flex; margin-left: 8px; }
.nav-social a { padding: 8px; font-size: 18px; display: flex; }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff;
  font-size: 28px; padding: 6px; cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 85vw);
    background: var(--navy-deep);
    padding: 90px 20px 20px;
    transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .3);
  }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { font-size: 16px; padding: 12px 14px; }
  .nav-social { margin: 12px 0 0; }
  .nav-toggle { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  text-align: center; color: #fff;
  background:
    linear-gradient(180deg, rgba(7, 26, 49, .78) 0%, rgba(7, 26, 49, .62) 50%, rgba(7, 26, 49, .9) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
  padding: calc(var(--header-h) + 40px) 0 140px;
}
.hero-logo { margin: 0 auto 24px; }
.hero-logo img { width: min(640px, 88vw); margin-inline: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .35)); }
.hero-tagline {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(20px, 3vw, 30px);
  max-width: 760px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pillars ---------- */
.pillars { margin-top: -90px; position: relative; z-index: 2; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2; color: #fff;
  isolation: isolate;
}
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.pillar::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 26, 49, .05) 20%, rgba(7, 26, 49, .88) 100%); }
.pillar:hover img { transform: scale(1.06); }
.pillar h2 { position: absolute; left: 24px; right: 24px; bottom: 18px; margin: 0; color: #fff; font-size: 21px; }
.pillar-icon {
  position: absolute; left: 24px; bottom: 62px;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: #fff; font-size: 24px;
  transition: transform .3s;
}
.pillar:hover .pillar-icon { transform: translateY(-4px); }
.pillar:hover { color: #fff; }

@media (max-width: 860px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { aspect-ratio: 16 / 7; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-header h2 {
  font-size: clamp(28px, 4vw, 36px); font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em;
  position: relative; padding-bottom: 18px; margin-bottom: 18px;
}
.section-header h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 2px; background: var(--orange);
}
.section-header p { color: var(--muted); margin: 0; }

@media (max-width: 640px) { .section { padding: 68px 0; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.about-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 56px 30px 30px; position: relative; margin-top: 32px;
  box-shadow: var(--shadow);
}
.about-card h3 { text-align: center; font-size: 22px; }
.about-card p { margin: 0; color: var(--muted); font-size: 15px; }
.about-card strong { color: var(--ink); }
.round-icon {
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: #fff; font-size: 28px;
  border: 5px solid #fff; box-shadow: 0 6px 16px rgba(255, 140, 0, .35);
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; gap: 40px; } }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
.why { display: flex; gap: 18px; align-items: flex-start; }
.why-icon {
  width: 56px; height: 56px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255, 140, 0, .12); color: var(--orange); font-size: 26px;
}
.why h3 { font-size: 17px; margin-bottom: .4em; }
.why p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  padding: 90px 0; color: #fff; text-align: center;
  background: linear-gradient(rgba(7, 26, 49, .55), rgba(7, 26, 49, .7)), url("../img/cta-bg.jpg") center / cover no-repeat;
}
.cta h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filters button {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px var(--font-head);
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: #fff; color: var(--navy);
  transition: all .2s;
}
.filters button .icon { color: var(--orange); font-size: 16px; }
.filters button:hover { border-color: var(--orange); }
.filters button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.filters button[aria-pressed="true"] .icon { color: #fff; }
.filters .filter-past { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters .filter-past[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); }
.filter-empty { text-align: center; color: var(--muted); }
.no-upcoming {
  max-width: 760px; margin: -12px auto 36px; padding: 16px 22px;
  text-align: center; color: var(--ink);
  background: rgba(255, 140, 0, .1); border-radius: var(--radius);
}
.no-upcoming[hidden] { display: none; }

/* ---------- Event cards ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.event[hidden] { display: none; }
.event { animation: fadeUp .4s ease both; }
.event-open {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; flex-direction: column; height: 100%; width: 100%;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.event-open:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.event-open:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.event-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--bg-alt); overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event-open:hover .event-media img { transform: scale(1.05); }
.event-media img.contain { object-fit: contain; padding: 16px; background: #fff; }
.dialog-image.contain { object-fit: contain; padding: 24px; background: #fff; }
.badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--orange); color: #fff;
  font: 700 12px var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.event-info { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; flex: 1; }
.event-cats { display: flex; gap: 10px; color: var(--orange); font-size: 20px; }
.event-title { font: 700 17px/1.35 var(--font-head); color: var(--navy); }
.event-date { color: var(--muted); font-size: 14px; margin-top: auto; padding-top: 4px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Event dialog ---------- */
.event-dialog {
  width: min(760px, calc(100% - 24px)); max-height: calc(100% - 40px);
  padding: 0; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: auto;
  color: var(--ink);
}
.event-dialog::backdrop { background: rgba(7, 26, 49, .75); backdrop-filter: blur(3px); }
.event-dialog[open] { animation: fadeUp .25s ease; }
.dialog-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(255, 255, 255, .95); color: var(--navy); box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.dialog-close:hover { background: var(--orange); color: #fff; }
.dialog-image { width: 100%; max-height: 380px; object-fit: cover; background: var(--bg-alt); }
.dialog-body { padding: 28px 34px 34px; }
.dialog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dialog-cats span {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px var(--font-head); color: var(--orange-dark);
  background: rgba(255, 140, 0, .12); padding: 5px 12px; border-radius: 999px;
}
.dialog-body h2 { font-size: clamp(22px, 3vw, 28px); }
.dialog-meta { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 15px; }
.dialog-meta li { display: flex; align-items: center; gap: 8px; }
.dialog-meta .icon { color: var(--orange); }
.dialog-content { font-size: 15.5px; overflow-wrap: anywhere; }
.dialog-content h4 { font-size: 17px; margin-top: 1.2em; }
.dialog-content p { margin: 0 0 1em; }
.dialog-content ul { padding-left: 1.3em; }
.dialog-content a { text-decoration: underline; text-underline-offset: 2px; }
.dialog-link { margin-top: 12px; }
@media (max-width: 600px) { .dialog-body { padding: 22px 20px 26px; } }

/* ---------- Business case ---------- */
.bc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bc-text h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; }
.bc-text .lead { font-size: 18px; }
.bc-text p { color: var(--muted); }
.bc-text .lead strong { color: var(--ink); }
.bc-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); transition: transform .3s; }
.bc-image:hover img { transform: scale(1.02); }
@media (max-width: 900px) { .bc-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact-item {
  text-align: center; padding: 34px 20px;
  border-radius: var(--radius); background: var(--bg-alt);
}
.contact-item > .icon { font-size: 40px; color: var(--orange); margin: 0 auto 14px; }
.contact-item h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.contact-item p, .contact-item address { margin: 0; font-style: normal; overflow-wrap: anywhere; }
.contact-item a { color: var(--ink); }
.contact-item a:hover { color: var(--orange); }
@media (max-width: 1080px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.partners { background: #fff; border-top: 1px solid var(--line); padding: 56px 0; }
.partners-title { text-align: center; font: 700 14px var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 30px; }
.partner-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.partner-logos img { max-height: 56px; max-width: 150px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partner-logos li:hover img { filter: none; opacity: 1; }

.footer-bottom { background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-logo { height: 46px; width: auto; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 19px; transition: background .2s;
}
.footer-social a:hover { background: var(--orange); color: #fff; }
.footer-meta { margin: 0; font-size: 14px; }
.footer-meta a { color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px;
  background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--orange-dark); color: #fff; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
