/* ==========================================================================
   20. Poslovno-finančni sejem – landing
   Values taken from "2026 11 PFS Landing 960x sirina datoteke 1920 V03.pdf"
   (1920 px artboard, 960 px content area, 1 pt = 1 px)
   ========================================================================== */

:root {
  /* Colors */
  --c-blue: #005ba3;          /* hero text, logo bars */
  --c-sky: #a1d3f9;           /* hero, bands, partner card */
  --c-sky-line: #5aa1d8;      /* partner card border */
  --c-orange: #ff8800;        /* buttons, audience card border */
  --c-orange-hover: #ec7a00;
  --c-peach: #fde0af;         /* audience card fill */
  --c-text: #262626;
  --c-white: #fff;
  --c-placeholder: #e5e5e5;   /* gallery placeholder */
  --btn-shadow: 0 6px 12px rgb(69 140 200 / .75);

  /* Type */
  --ff-body: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --ff-hero: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* scaled down from the PDF (18px body) to a 16px base, ~0.89x */
  --fs-sm: 16px;
  --fs-md: 19.5px;
  --fs-h3: 21px;
  --fs-h2: 30px;
  --lh-sm: 22.5px;
  --lh-md: 27px;

  /* Layout */
  --container: 960px;
  --inset: 81px;              /* text column inset inside the 960 container */
  --card-bleed: 24px;         /* cards stick out of the text column (= card padding) */
  --card-bleed-r: 24px;
  --col-gap: 14px;
  --radius: 12px;

  /* Spacing scale (8px based). Big gaps separate sections,
     small gaps keep a heading close to the content it introduces. */
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --section: 88px;
}

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

html { -webkit-text-size-adjust: 100%; }

html { overflow-x: clip; }

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, figure { margin: 0; }
p, li { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
strong { font-weight: 700; }
a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--inset);
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
  font-weight: 400;
}

.text-lg {
  font-size: var(--fs-md);
  line-height: var(--lh-md);
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--col-gap);
  row-gap: 20px;
}

/* --------------------------------------------------------------------------
   Decorative rings (vector, exported from the PDF)
   -------------------------------------------------------------------------- */
.deco {
  /* full viewport width only; the 1920px artwork is centred inside and
     cropped, so it can never push the page wider (no sideways scroll) */
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 1920px auto;
  background-position: center top;
}
.deco--top {
  top: 0;
  height: 740px;
  z-index: 1;
  background-image: url("../img/rings-top.svg");
}
.deco--bottom {
  bottom: 0;
  height: 742px;
  z-index: 1;   /* reaches up behind the gallery too */
  background-image: url("../img/rings-bottom.svg");
  background-position: center bottom;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 205px;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--c-orange);
  color: var(--c-white);
  font: 700 var(--fs-sm)/1.2 var(--ff-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--c-orange-hover); }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 8px rgb(69 140 200 / .75); }
.btn .i { width: 16px; height: auto; flex: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--c-sky);
  border-bottom: 7px solid var(--c-white);
  color: var(--c-blue);
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--s-6) 20px 52px;
}

.hero__logo {
  width: 144px;
  height: auto;
  margin-right: 41px;
  flex: none;
}

.hero__title { flex: none; min-width: 335px; }

/* logo bars stand on the baseline of "in kreditiranje" (as in the design) */
.hero__brand {
  display: flex;
  align-items: last baseline;
  flex: none;
}

.hero__kicker {
  font: 700 25px/30px var(--ff-hero);
  letter-spacing: -.01em;
  margin-bottom: 2px;
}

.hero__heading {
  font: 700 50px/55px var(--ff-hero);
  letter-spacing: -.01em;
}

.hero__divider {
  flex: none;
  width: 2px;
  height: 153px;
  margin: 4px 28px 0 50px;
  background: var(--c-blue);
}

.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__date {
  padding-left: 10px;
  font: 400 23px/28px var(--ff-hero);
}

/* Add to calendar */
.cal {
  position: relative;
  margin-top: 36px;
}

.btn--cal { position: relative; z-index: 2; min-width: 216px; } /* as wide as its menu */

.cal__menu {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;                   /* exactly as wide as the button */
  z-index: 1;
  padding: 30px 0 8px;
  white-space: nowrap;
  background: var(--c-white);
  box-shadow: 0 8px 24px rgb(0 40 80 / .18);
}
.cal__menu[hidden] { display: none; }

.cal__menu a {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 20px;
  font-size: var(--fs-sm);
  line-height: 22px;
  color: var(--c-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.cal__menu a:hover,
.cal__menu a:focus-visible { background: #f2f5f8; outline-offset: -3px; }
.cal__menu img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
}

/* --------------------------------------------------------------------------
   Main + background gradient
   -------------------------------------------------------------------------- */
.main {
  position: relative;
  padding: 72px 0 var(--section);
  background: linear-gradient(180deg,
    #b2daf8 0%,
    #b4dbf8 10%,
    #b8ddf9 17%,
    #bfe0f9 24%,
    #cae5fa 31%,
    #daedfc 37.5%,
    #eef7fe 44%,
    #fafdff 48%,
    #fafdff 51%,
    #ebf5fe 54.5%,
    #ddeffd 58%,
    #c7e4fa 65%,
    #b6dcf8 72%,
    #abd6f8 78.5%,
    #a3d3f7 85.5%,
    #a0d1f7 92%,
    #a0d2f8 100%);
}

.main > * { position: relative; z-index: 2; }

/* About */
.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-md);
}

.card {
  /* bleeds out of the text column by its own padding, so inner text stays aligned */
  margin: var(--s-5) calc(var(--card-bleed-r) * -1) 0 calc(var(--card-bleed) * -1);
  padding: var(--s-4) calc(var(--card-bleed-r) - 3px) var(--s-4) calc(var(--card-bleed) - 3px); /* minus border */
  border: 3px solid;
  border-radius: var(--radius);
}
.card--orange { background: var(--c-peach); border-color: var(--c-orange); }
.card--blue { background: var(--c-sky); border-color: var(--c-sky-line); }

.card__title {
  font-size: var(--fs-md);
  line-height: var(--lh-md);
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.bullets {
  columns: 2;
  column-gap: var(--col-gap);
}
/* one line-height for wrapped lines and item spacing, so both columns
   share the same rows */
.bullets li {
  position: relative;
  padding-left: 18px;
  line-height: 26px;
  break-inside: avoid;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* right column inside the orange card sits a touch further in (design: +6px) */
.audience .bullets { column-gap: calc(var(--col-gap) + 12px); }

.theme { margin-top: 40px; align-items: start; }
.theme > p:first-child { max-width: 276px; }
.theme > p:last-child { padding: 0 24px 0 6px; }
.audience .bullets li { padding-right: 14px; }

.program-note { margin-top: 40px; }

/* Prijave band */
.band { margin-top: var(--section); }
.band__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 40px var(--inset) 44px;
  background: var(--c-sky);
}
.band .h2 { margin-bottom: var(--s-4); }
.band__btn { margin-top: var(--s-4); }

/* Partnerstvo */
.partner { margin-top: var(--section); }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--s-6);
  row-gap: 40px;
  margin-top: 40px;
}

.feature__icon {
  display: flex;
  align-items: flex-end;
  height: 30px;
  margin-bottom: var(--s-2);
}
.feature__icon .i { height: 100%; width: auto; }
.feature__icon .i--eye { height: 25px; }
.feature__icon .i--handshake { height: 26px; }

.feature__title {
  font-size: var(--fs-h3);
  line-height: 27px;
  font-weight: 700;
  margin-bottom: 4px;
}

.partner__cta > p { max-width: 342px; }
.partner__cta {
  margin-top: 56px;
  align-items: center;
  padding-block: var(--s-5);
}

/* Galerija */
.gallery-section { margin-top: var(--section); }

.gallery-intro { margin-top: var(--s-2); }

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-flow: dense;
  gap: var(--s-2);
  margin-top: 40px;
}

.gallery li { aspect-ratio: 148 / 105; }
.gallery li.is-tall { grid-row: span 2; aspect-ratio: auto; }

.gallery a {
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--c-placeholder);
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .2s ease;
}
.gallery a:hover img { transform: scale(1.05); }
.gallery a:focus-visible { outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--c-white);
}

.footer__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 144px;
  padding-block: var(--s-5);
}

.footer__logo { justify-self: start; }
.footer__logo img { width: 148px; height: auto; }

.footer__copy {
  font-size: 13px;
  line-height: 1.4;
}

.footer__sep { margin-inline: 8px; }
.footer__link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.footer__link:hover { color: var(--c-blue); }

.footer__social {
  justify-self: end;
  display: flex;
  gap: 14px;
}
.footer__social a {
  display: block;
  color: var(--c-text);
  transition: color .2s ease;
}
.footer__social a:hover { color: var(--c-blue); }
.footer__social .i { width: 29px; height: 29px; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgb(0 45 90 / .55);
  backdrop-filter: blur(2px);
}
.lightbox[open] {
  display: grid;
  place-items: center;
  animation: lb-in .2s ease;
}
@keyframes lb-in { from { opacity: 0; } }

.lightbox__figure {
  display: grid;
  place-items: center;
  padding: 64px 80px;
  width: 100%;
  height: 100%;
}
.lightbox__img {
  max-width: min(100%, 900px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 50px rgb(0 0 0 / .35);
  background: var(--c-placeholder);
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-text);
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(0 0 0 / .2);
  transition: background-color .2s ease, color .2s ease;
}
.lightbox__btn:hover { background: var(--c-orange); color: var(--c-white); }
.lightbox__btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }

.lightbox__count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  translate: -50% 0;
  color: var(--c-white);
  font-size: 14px;
  letter-spacing: .05em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  :root { --inset: 40px; }

  .hero__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 32px;
    row-gap: var(--s-5);
    max-width: 760px;
    margin-inline: auto;
    padding: 40px 40px var(--s-6);
  }
  .hero__brand { display: contents; }  /* logo + title become grid items */
  .hero__logo { width: 130px; margin: 0; }
  .hero__logo,
  .hero__title { align-self: last baseline; }
  .hero__title { min-width: 0; }
  .hero__divider { display: none; }
  .hero__meta {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    padding-top: var(--s-4);
    border-top: 2px solid var(--c-blue);
  }
  .hero__date { padding-left: 0; }
  .cal { margin-top: 0; }
}

@media (max-width: 760px) {
  :root {
    --inset: 20px;
    --fs-md: 18px;
    --lh-md: 25px;
    --fs-sm: 16px;
    --lh-sm: 22.5px;
    --fs-h2: 25px;
    --fs-h3: 19px;
    --section: 64px;
    --card-bleed: 0px;
    --card-bleed-r: 0px;
  }

  .hero__inner { padding: var(--s-5) 20px 40px; column-gap: 20px; row-gap: var(--s-4); }
  .hero__logo { width: 92px; }
  .hero__kicker { font-size: 16px; line-height: 21px; }
  .hero__heading { font-size: 31px; line-height: 35px; }
  .hero__date { font-size: 18px; line-height: 24px; }

  .main { padding-top: 40px; }
  .theme { margin-top: var(--s-5); }
  .program-note { margin-top: var(--s-5); }

  .cols,
  .features { grid-template-columns: 1fr; }
  .bullets { columns: 1; }
  .theme > p:first-child { max-width: none; }
  .theme > p:last-child { padding: 0; }
  .partner__cta > p { max-width: none; }

  .card { padding: 20px 16px; }
  .card--blue { padding-block: var(--s-4); }
  .band__inner { padding: var(--s-5) var(--inset) 36px; }
  .band .h2 { margin-bottom: var(--s-3); }
  .band__btn { margin-top: var(--s-3); }
  .features { margin-top: var(--s-5); row-gap: var(--s-5); }
  .partner__cta { margin-top: 40px; }
  .gallery-intro { margin-top: var(--s-1); }
  .gallery-intro br { display: none; }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-1);
    margin-top: var(--s-4);
  }

  .footer__inner {
    grid-template-columns: 1fr auto;
    row-gap: var(--s-3);
    min-height: 0;
    padding-block: 40px;
  }
  .footer__copy { grid-column: 1 / -1; grid-row: 2; }

  .lightbox__figure { padding: 72px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; translate: none; }
  .lightbox__count { bottom: 26px; }
}

@media (max-width: 480px) {
  .btn { min-width: 0; width: 100%; }
  .cal, .hero__meta > * { width: 100%; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Cookie consent banner
   -------------------------------------------------------------------------- */
.btn--ghost {
  background: var(--c-white);
  color: var(--c-blue);
  box-shadow: inset 0 0 0 2px var(--c-blue);
}
.btn--ghost:hover { background: #eef6fd; }
.btn--ghost:active { box-shadow: inset 0 0 0 2px var(--c-blue); }

.consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  padding: 0 var(--s-3) var(--s-3);
  pointer-events: none;
}
.consent[hidden] { display: none; }

.consent__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--s-4);
  border-top: 3px solid var(--c-orange);
  border-radius: var(--radius);
  background: var(--c-white);
  box-shadow: 0 8px 32px rgb(0 40 80 / .22);
  pointer-events: auto;
}

.consent__text { flex: 1; font-size: 15px; line-height: 21px; }

.consent__actions { display: flex; gap: var(--s-2); flex: none; }
.consent__actions .btn { min-width: 120px; }

@media (max-width: 760px) {
  .consent { padding: 0 var(--s-1) var(--s-1); }
  .consent__inner { flex-direction: column; align-items: stretch; gap: var(--s-3); padding: var(--s-3); }
  .consent__actions .btn { flex: 1; min-width: 0; }
}

/* --------------------------------------------------------------------------
   Newsletter pop-up
   -------------------------------------------------------------------------- */
.modal {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: var(--s-6) var(--s-5) var(--s-5);
  border: 0;
  border-top: 3px solid var(--c-orange);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-text);
  box-shadow: 0 16px 48px rgb(0 40 80 / .3);
}
.modal::backdrop {
  background: rgb(0 45 90 / .55);
  backdrop-filter: blur(2px);
}

.modal__close {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--c-text);
  cursor: pointer;
  transition: background-color .2s ease;
}
.modal__close:hover { background: #eef3f8; }
.modal__close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal__title {
  font-size: var(--fs-h3);
  line-height: 27px;
  font-weight: 700;
  color: var(--c-blue);
}
.modal__text { margin-top: var(--s-2); }

.nl-form { display: grid; gap: var(--s-3); margin-top: var(--s-4); }

.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; line-height: 18px; font-weight: 700; }
.field__input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #a9bfd3;
  border-radius: 8px;
  background: var(--c-white);
  color: inherit;
  font: inherit;
}
.field__input:focus { outline: 2px solid var(--c-blue); outline-offset: 0; border-color: var(--c-blue); }

.nl-form__submit { width: 100%; margin-top: var(--s-1); }
.nl-form__submit:disabled { opacity: .7; cursor: progress; }
[data-newsletter-step="done"] .nl-form__submit { margin-top: var(--s-4); }

.nl-form__error { color: #b3261e; font-size: 14px; line-height: 20px; }

/* target for the form post; never visible */
.sr-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

@media (max-width: 480px) {
  .modal { padding: 40px var(--s-4) var(--s-4); }
}
