/*
Theme Name: Poker Theme
Theme URI: https://kantorpoker.pl
Author: Kantor POKER
Description: Nowoczesny motyw kantoru wymiany walut — Kantor POKER Poznań.
Version: 0.2.5
Text Domain: poker-theme
Requires at least: 6.4
Requires PHP: 8.0
*/

:root {
  --poker-ink: #123040;
  --poker-muted: #5a7380;
  --poker-paper: #ffffff;
  --poker-surface: #ffffff;
  --poker-accent: #c62828;
  --poker-accent-deep: #8e1b1b;
  --poker-ok: #2e7d4f;
  --poker-teal: #1a6b75;
  --poker-teal-soft: #2a8a96;
  --poker-line: color-mix(in srgb, var(--poker-ink) 12%, transparent);
  --poker-shadow: 0 18px 50px color-mix(in srgb, var(--poker-ink) 12%, transparent);
  --poker-font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --poker-font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --poker-radius: 8px;
  --poker-max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--poker-font-body);
  color: var(--poker-ink);
  background: #fff;
  min-height: 100vh;
  line-height: 1.55;
}

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

a {
  color: var(--poker-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--poker-accent);
}

.poker-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.poker-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.poker-shell {
  width: min(100% - 3rem, var(--poker-max));
  margin-inline: auto;
}

@media (min-width: 860px) {
  .poker-shell {
    width: min(100% - 4rem, var(--poker-max));
  }
}

.poker-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 0;
}

.poker-site-header__inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  padding: 0.35rem 0 0.55rem;
  min-height: 110px;
  flex-wrap: nowrap;
}

.poker-brand {
  display: flex;
  align-items: flex-end;
  align-self: stretch;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.poker-brand img {
  height: 96px;
  width: auto;
  max-height: 110px;
}

.poker-money-banner {
  background: #fff;
}

.poker-money-banner .poker-shell {
  padding: 0;
}

.poker-money-banner img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 859px) {
  .poker-site-header__inner {
    align-items: center;
    min-height: 88px;
    padding: 0.4rem 0;
  }

  .poker-brand {
    align-items: center;
  }

  .poker-brand img {
    height: 72px;
  }

  .poker-money-banner img {
    height: 88px;
  }
}

.poker-nav-toggle {
  margin-left: auto;
  align-self: center;
}

.poker-nav-wrap {
  display: none;
}

.poker-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.poker-nav a {
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--poker-ink);
}

.poker-nav a:hover,
.poker-nav .current-menu-item > a,
.poker-nav .current_page_item > a {
  color: var(--poker-accent);
}

.poker-nav-lang {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--poker-line);
}

.poker-header-tools {
  display: none;
}

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--poker-line);
  background: var(--poker-surface);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  border-radius: var(--poker-radius);
}

.lang-switcher__toggle img {
  display: block;
  width: 1.4rem;
  height: auto;
}

.lang-switcher__caret {
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid var(--poker-muted);
  border-bottom: 1.5px solid var(--poker-muted);
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.75;
}

.lang-switcher.is-open .lang-switcher__caret {
  transform: rotate(225deg) translateY(-1px);
}

.lang-switcher__menu {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.4rem 0;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 11rem;
  background: #fff;
  border: 1px solid var(--poker-line);
  box-shadow: var(--poker-shadow);
  z-index: 130;
}

.lang-switcher__menu[hidden] {
  display: none;
}

.lang-switcher__option-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  color: var(--poker-muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.lang-switcher__option-link:hover {
  background: color-mix(in srgb, var(--poker-accent) 8%, transparent);
  color: var(--poker-ink);
}

.lang-switcher__option.is-current .lang-switcher__option-link {
  color: var(--poker-ink);
}

.lang-switcher__option-link img {
  display: block;
  width: 1.25rem;
  height: auto;
}

.poker-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.poker-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.15rem;
  border-radius: var(--poker-radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.poker-btn:hover {
  transform: translateY(-1px);
}

.poker-btn--primary {
  background: var(--poker-accent);
  color: #fff;
}

.poker-btn--primary:hover {
  background: var(--poker-accent-deep);
  color: #fff;
}

.poker-btn--ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--poker-ink) 25%, transparent);
  color: var(--poker-ink);
}

.poker-btn--ghost:hover {
  border-color: var(--poker-accent);
  color: var(--poker-accent);
}

.poker-hero {
  padding: 2.5rem 0 1.5rem;
}

.poker-hero__grid {
  display: grid;
  gap: 1.5rem;
}

.poker-hero__title-block {
  display: inline-block;
  max-width: 100%;
}

.poker-hero__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--poker-teal);
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}

.poker-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--poker-font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  width: max-content;
  max-width: 100%;
}

.poker-hero__lead {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  max-width: 38rem;
  color: color-mix(in srgb, var(--poker-ink) 82%, transparent);
}

.poker-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.poker-hero__panel {
  background: var(--poker-surface);
  border: 1px solid var(--poker-line);
  box-shadow: var(--poker-shadow);
  padding: 1rem;
  animation: poker-rise 0.7s ease both;
}

.poker-section {
  padding: 2rem 0;
}

.poker-section__title {
  margin: 0 0 1rem;
  font-family: var(--poker-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.poker-advantages {
  display: grid;
  gap: 0.85rem;
}

.poker-advantage {
  background: color-mix(in srgb, var(--poker-surface) 90%, #fff);
  border: 1px solid var(--poker-line);
  padding: 1rem 1.1rem;
  animation: poker-rise 0.8s ease both;
}

.poker-advantage:nth-child(2) { animation-delay: 0.05s; }
.poker-advantage:nth-child(3) { animation-delay: 0.1s; }
.poker-advantage:nth-child(4) { animation-delay: 0.15s; }

.poker-advantage strong {
  display: block;
  font-family: var(--poker-font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.poker-contact-strip {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  color: var(--poker-ink);
  border: 1px solid var(--poker-line);
  box-shadow: var(--poker-shadow);
}

.poker-contact-strip a {
  color: var(--poker-teal);
  text-decoration: none;
}

.poker-contact-strip a:hover {
  color: var(--poker-accent);
  text-decoration: underline;
}

.poker-contact-strip__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  font-size: 0.9rem;
  margin: 0.2rem 0 0.45rem;
  color: var(--poker-muted);
}

.poker-contact-strip__status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #2e7d4f;
}

.poker-contact-strip__status.is-closed::before {
  background: #c62828;
}

.poker-contact-strip__label {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1rem;
}

.poker-contact-strip__value {
  margin: 0;
  line-height: 1.45;
}

.poker-faq details {
  border-bottom: 1px solid var(--poker-line);
  padding: 0.85rem 0;
}

.poker-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.poker-site-footer {
  margin-top: 2rem;
  padding: 0.85rem 0 1.25rem;
  border-top: 1px solid var(--poker-line);
  color: var(--poker-muted);
  font-size: 0.9rem;
}

.poker-site-footer__copy {
  margin: 0;
  text-align: left;
}

.poker-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  border: 1px solid var(--poker-line);
  border-radius: var(--poker-radius);
  background: #fff;
  cursor: pointer;
}

.poker-nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--poker-ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.is-nav-open .poker-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.is-nav-open .poker-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.is-nav-open .poker-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.is-nav-open .poker-nav-wrap {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 45;
  background: #fff;
  border-bottom: 1px solid var(--poker-line);
  box-shadow: var(--poker-shadow);
  padding: 0.75rem 1rem 1rem;
}

body.is-nav-open .poker-nav {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

body.is-nav-open .poker-nav a {
  display: block;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--poker-line);
}

body.is-nav-open .poker-nav-lang {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--poker-line);
}

body.is-nav-open .lang-switcher__menu {
  left: 0;
  right: auto;
}

.poker-page {
  padding: 2rem 0 3rem;
}

.poker-page__content {
  background: var(--poker-surface);
  border: 1px solid var(--poker-line);
  padding: 1.5rem;
  box-shadow: var(--poker-shadow);
}

.poker-page__content > *:first-child {
  margin-top: 0;
}

.page-o-nas .poker-page__content,
.page-o-nas .poker-page__content p {
  text-align: justify;
}

.poker-map {
  width: 100%;
  height: 420px;
  min-height: 420px;
  border: 0;
  border-radius: var(--poker-radius);
}

@media (min-width: 860px) {
  .poker-map {
    height: 520px;
    min-height: 520px;
  }
}

@keyframes poker-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 860px) {
  .poker-nav-toggle {
    display: none;
  }

  .poker-nav-wrap {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 1rem;
    position: static;
    padding: 0 0 0.15rem;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .poker-nav-lang {
    margin: 0;
    padding: 0;
    border: 0;
  }

  body.is-nav-open .poker-nav-lang {
    margin: 0;
    padding: 0;
    border: 0;
  }

  body.is-nav-open .lang-switcher__menu {
    left: auto;
    right: 0;
  }

  body.is-nav-open .poker-nav-wrap {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  body.is-nav-open .poker-nav {
    flex-direction: row;
    gap: 1.15rem;
  }

  body.is-nav-open .poker-nav a {
    display: inline;
    padding: 0;
    border-bottom: 0;
  }

  .poker-nav {
    gap: 1.15rem;
    justify-content: flex-end;
  }

  .poker-nav a {
    font-size: 0.95rem;
  }

  .poker-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

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

  .poker-contact-strip {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .poker-advantages {
    grid-template-columns: repeat(4, 1fr);
  }
}
