/*
Theme Name: Hello Elementor TRK
Description: Child theme dla Hello Elementor — paleta TRK System (terakota + Space Grotesk + Inter). Zatwierdzone przez Madam Tatjanę Kobuszewską 20.06.2026. Robert Kobuszewski + Claude.
Author: TRK System
Template: hello-elementor
Version: 1.0.2
Text Domain: hello-elementor-trk
*/

/* === CSS VARIABLES (centralna paleta + fonty) === */
:root {
  /* Paleta TRK — zatwierdzona z Madam 20.06.2026 */
  --trk-ink: #1A1A1A;          /* atrament — ciepła prawie-czerń */
  --trk-paper: #F5F2EC;        /* papier — kremowa biel */
  --trk-accent: #C0561E;       /* terakota — akcent (ceny, buttony, linki) */
  --trk-gray: #6B6F73;         /* szary tekst — subtytuły, meta */
  --trk-line: #E7E4DF;         /* beżowy separator */
  --trk-peach: #E7B79C;        /* peach — kicker statement band */

  /* Fonty Google */
  --trk-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --trk-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --trk-maxw: 1280px;
}

/* === BAZA === */
body {
  font-family: var(--trk-body);
  color: var(--trk-ink);
  background-color: var(--trk-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAFIA === */
h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-post-title,
.wp-block-heading {
  font-family: var(--trk-display);
  letter-spacing: -0.02em;
  color: var(--trk-ink);
}

h1 {
  font-weight: 700;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

h3 {
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  font-family: var(--trk-body);
  color: var(--trk-ink);
}

/* === LINKI === */
a {
  color: var(--trk-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--trk-ink);
}

/* === BUTTONY GUTENBERG === */
.wp-block-button__link {
  font-family: var(--trk-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 9px;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background-color: var(--trk-ink);
  color: var(--trk-paper);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--trk-ink);
  color: var(--trk-ink);
}

.wp-block-button.is-style-accent .wp-block-button__link {
  background-color: var(--trk-accent);
  color: #fff;
}

/* === GALERIA MOBILE-FIRST === */
.wp-block-gallery .wp-block-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .wp-block-gallery .wp-block-image img {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .wp-block-gallery .wp-block-image img {
    height: 240px;
  }
}

/* === SEPARATOR === */
.wp-block-separator {
  border-color: var(--trk-line);
  border-bottom-width: 1px;
  margin: 32px 0;
}

/* === FAQ Yoast block === */
.schema-faq-section {
  border-bottom: 1px solid var(--trk-line);
  padding: 18px 0;
}

.schema-faq-question {
  font-family: var(--trk-display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--trk-ink);
  cursor: pointer;
}

.schema-faq-answer {
  font-family: var(--trk-body);
  color: var(--trk-gray);
  margin-top: 10px;
}

/* === CENNIK TABLE === */
.wp-block-table {
  border-collapse: collapse;
  border-radius: 14px;
  overflow: hidden;
}

.wp-block-table th,
.wp-block-table td {
  padding: 16px 22px;
  border: 1px solid var(--trk-line);
}

.wp-block-table th {
  background-color: var(--trk-ink);
  color: var(--trk-paper);
  font-family: var(--trk-display);
  font-weight: 600;
  text-align: left;
}

.wp-block-table td:nth-child(2) {
  color: var(--trk-accent);
  font-family: var(--trk-display);
  font-weight: 700;
}

/* === KICKER UPPERCASE (helper class do użycia w treści) === */
.kicker {
  font-family: var(--trk-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--trk-accent);
  margin-bottom: 12px;
  display: block;
}

/* === EYEBROW (helper class — biały na hero) === */
.eyebrow {
  font-family: var(--trk-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 16px;
  display: block;
}

/* === HERO FULL-BLEED CONTAINER === */
.trk-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 820px;
  overflow: hidden;
}

.trk-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trk-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10,12,14,.45) 0%,
    rgba(10,12,14,.05) 35%,
    rgba(10,12,14,.35) 70%,
    rgba(10,12,14,.85) 100%);
}

.trk-hero .trk-hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 56px 22px;
}

.trk-hero h1,
.trk-hero h2 {
  color: #fff;
}

/* === STATEMENT BAND (full-bleed photo + side text) === */
.trk-band {
  position: relative;
  height: 62vh;
  min-height: 420px;
  overflow: hidden;
}

.trk-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trk-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10,12,14,.82) 0%,
    rgba(10,12,14,.45) 55%,
    rgba(10,12,14,.15) 100%);
}

.trk-band .trk-band-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 22px;
}

.trk-band h2 {
  color: #fff;
}

.trk-band .kicker {
  color: var(--trk-peach);
}

/* === FAIRS BAR (logo wall międzynarodowych targów) === */
.trk-fairs {
  background-color: var(--trk-ink);
  color: #fff;
  padding: 16px 22px;
}

.trk-fairs ul {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trk-fairs li {
  font-family: var(--trk-display);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.62;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 820px) {
  .wp-block-columns {
    flex-direction: column;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

:focus-visible {
  outline: 2px solid var(--trk-accent);
  outline-offset: 2px;
}

/* === PRINT === */
@media print {
  body { background: white; }
  a { color: var(--trk-ink); }
}

/* === FLOATING CALL BUTTON (zielona słuchawka — TRK signature) === */
.trk-floating-call {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  animation: trkPulse 2.5s infinite;
}

.trk-floating-call:hover {
  background: #128C7E;
  transform: scale(1.1);
  color: #fff;
}

@keyframes trkPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 16px rgba(37,211,102,0.4), 0 0 0 14px rgba(37,211,102,0); }
}

/* Tooltip „Zadzwoń!" */
.trk-floating-call::before {
  content: "Zadzwoń! Czynne 8-20";
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: var(--trk-ink);
  color: var(--trk-paper);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--trk-display);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.trk-floating-call:hover::before { opacity: 1; }

@media (max-width: 480px) {
  .trk-floating-call {
    width: 56px;
    height: 56px;
    font-size: 26px;
    bottom: 18px;
    right: 18px;
  }
  .trk-floating-call::before { display: none; }
}

/* === MASONRY GRID dla strony głównej i innych sekcji realizacji === */
.trk-gal {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-width: 1280px;
  margin: 40px auto;
}
.trk-tile {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}
.trk-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.trk-tile:hover img { transform: scale(1.05); }
.trk-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,12,14,0.8) 100%);
}
.trk-tile .trk-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  color: #fff;
  padding: 20px 18px;
}
.trk-tile .trk-ti {
  font-family: var(--trk-display);
  font-weight: 600;
  font-size: 15px;
}
.trk-tile .trk-ds {
  font-family: var(--trk-body);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  max-height: 0;
  transition: opacity 0.3s, max-height 0.3s;
}
.trk-tile:hover .trk-ds {
  opacity: 1;
  max-height: 60px;
  margin-top: 4px;
}
.trk-tile.t-wide { grid-column: span 4; aspect-ratio: 3/2; }
.trk-tile.t-tall { grid-column: span 2; aspect-ratio: 3/4; }
.trk-tile.t-pan { grid-column: span 6; aspect-ratio: 24/9; }
@media (max-width: 820px) {
  .trk-gal { grid-template-columns: 1fr 1fr; }
  .trk-tile.t-wide, .trk-tile.t-tall, .trk-tile.t-pan {
    grid-column: span 2;
    aspect-ratio: 4/3;
  }
  .trk-tile .trk-ds { opacity: 1; max-height: 60px; }
}
