/**
 * ROZS.pl — css/homepage.css
 * Style specyficzne dla strony głównej.
 * Ładowane tylko na front-page (front-page.php).
 *
 * Używa tokenów z style.css (--rozs-*)
 */

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
}

.home-hero__eyebrow {
  font-family: var(--rozs-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rozs-green3);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.rozs-eyebrow-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--rozs-amber2);
  border-radius: 99px;
  flex-shrink: 0;
}

.home-hero__title {
  font-family: var(--rozs-font-sans);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--rozs-text);
  margin-bottom: 10px;
}

.home-hero__accent {
  display: block;
  color: var(--rozs-green2);
}

.home-hero__subtitle {
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 460px;
}

.home-hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

/* Micro-trust */
.home-hero__trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--rozs-font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--rozs-text4);
}

.hero-trust-check {
  color: var(--rozs-green3);
  font-weight: 800;
}

/* Stats row */
.home-hero__stats {
  display: flex;
  border-top: 1px solid var(--rozs-border);
  padding-top: 24px;
}

.hero-stat {
  flex: 1;
  padding-right: 20px;
  border-right: 1px solid var(--rozs-border);
  margin-right: 20px;
}

.hero-stat:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.hero-stat__value {
  font-family: var(--rozs-font-sans);
  font-weight: 800;
  font-size: 22px;
  color: var(--rozs-green);
  margin-bottom: 3px;
}

.hero-stat__value--amber { color: var(--rozs-amber-dark); }

.hero-stat__label {
  font-family: var(--rozs-font-sans);
  font-size: 11px;
  color: var(--rozs-text4);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════
   DEADLINE CARD
══════════════════════════════════════════════ */
.rozs-deadline-card {
  background: var(--rozs-green);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(28,76,52,0.22);
}

.rozs-deadline-card__title {
  font-family: var(--rozs-font-sans);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.rozs-deadline-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rozs-deadline-item:last-of-type { border-bottom: none; }

.rozs-deadline-item__date {
  font-family: var(--rozs-font-sans);
  font-weight: 900;
  font-size: 22px;
  color: var(--rozs-amber2);
  min-width: 56px;
}

.rozs-deadline-item__info { flex: 1; }

.rozs-deadline-item__name {
  font-family: var(--rozs-font-sans);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.rozs-deadline-item__desc {
  font-family: var(--rozs-font-sans);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* Countdown */
.rozs-deadline-card__countdown {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rozs-cd-label {
  font-family: var(--rozs-font-sans);
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.rozs-cd-text {
  font-family: var(--rozs-font-sans);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.rozs-cd-days {
  font-family: var(--rozs-font-sans);
  font-weight: 900;
  font-size: 30px;
  color: var(--rozs-amber2);
  line-height: 1;
}

.rozs-cd-unit {
  font-family: var(--rozs-font-sans);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

/* ══════════════════════════════════════════════
   4 PYTANIA (PILLARS)
══════════════════════════════════════════════ */
.home-pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pillar-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.22s;
}

.pillar-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-3px);
}

.pillar-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.pillar-card__question {
  font-family: var(--rozs-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rozs-amber2);
  margin-bottom: 8px;
}

.pillar-card__title {
  font-family: var(--rozs-font-sans);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.25;
}

.pillar-card__desc {
  font-family: var(--rozs-font-serif);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  flex: 1;
}

.pillar-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--rozs-font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--rozs-amber2);
  transition: gap 0.15s;
}

.pillar-card:hover .pillar-card__link { gap: 10px; }

/* ══════════════════════════════════════════════
   KALKULATOR
══════════════════════════════════════════════ */
.rozs-calc-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--rozs-white);
  border-radius: 20px;
  border: 1px solid var(--rozs-border);
  padding: 36px;
  box-shadow: var(--rozs-shadow-md);
}

.rozs-calc-tabs {
  display: flex;
  gap: 6px;
  background: var(--rozs-cream);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 28px;
}

.rozs-calc-tab {
  flex: 1;
  font-family: var(--rozs-font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 8px;
  text-align: center;
  border-radius: 9px;
  cursor: pointer;
  color: var(--rozs-text3);
  background: transparent;
  border: none;
  transition: all 0.15s;
}

.rozs-calc-tab.is-active {
  background: var(--rozs-white);
  color: var(--rozs-green);
  box-shadow: 0 2px 8px rgba(28,76,52,0.12);
}

.rozs-calc-panel { display: none; }
.rozs-calc-panel.is-active { display: block; }

.rozs-calc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.rozs-calc-field label {
  font-family: var(--rozs-font-sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--rozs-text4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}

.rozs-calc-field select,
.rozs-calc-field input {
  width: 100%;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1.5px solid var(--rozs-border2);
  background: var(--rozs-cream);
  font-family: var(--rozs-font-sans);
  font-size: 14px;
  color: var(--rozs-text);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.rozs-calc-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%234A6855' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

.rozs-calc-field select:focus,
.rozs-calc-field input:focus {
  border-color: var(--rozs-green3);
  background: var(--rozs-white);
}

/* WYNIK */
.rozs-calc-result {
  background: var(--rozs-green-pale);
  border: 1.5px solid var(--rozs-green-pale2);
  border-radius: 13px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  transition: background 0.3s, border-color 0.3s;
}

.rozs-calc-result.result--warn   { background: var(--rozs-amber-pale); border-color: rgba(232,150,10,0.25); }
.rozs-calc-result.result--danger { background: var(--rozs-red-pale); border-color: rgba(192,48,48,0.2); }

.rozs-calc-result__label {
  font-family: var(--rozs-font-sans);
  font-size: 11px;
  color: var(--rozs-text3);
  margin-bottom: 4px;
}

.rozs-calc-result__value {
  font-family: var(--rozs-font-sans);
  font-weight: 900;
  font-size: 26px;
  color: var(--rozs-green);
  transition: color 0.3s;
}

.rozs-calc-result.result--warn   .rozs-calc-result__value { color: var(--rozs-amber-dark); }
.rozs-calc-result.result--danger .rozs-calc-result__value { color: var(--rozs-red); }

[data-result-badge] {
  font-family: var(--rozs-font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 9px;
  text-align: center;
  line-height: 1.4;
  white-space: pre-line;
  background: var(--rozs-green-pale);
  color: var(--rozs-green2);
  border: 1px solid rgba(28,76,52,0.2);
  transition: all 0.3s;
}

[data-result-badge].result--warn   { background: var(--rozs-amber-pale); color: var(--rozs-amber-dark); border-color: rgba(232,150,10,0.3); }
[data-result-badge].result--danger { background: var(--rozs-red-pale); color: var(--rozs-red); border-color: rgba(192,48,48,0.25); }

/* E-mail */
.rozs-calc-email { margin-bottom: 12px; }
.rozs-calc-email__label { font-family: var(--rozs-font-sans); font-size: 11px; color: var(--rozs-text4); margin-bottom: 6px; }
.rozs-calc-email__row { display: flex; gap: 7px; }
.rozs-calc-email__input { flex: 1; padding: 10px 13px; border-radius: 9px; border: 1.5px solid var(--rozs-border2); background: var(--rozs-cream); font-family: var(--rozs-font-sans); font-size: 13px; color: var(--rozs-text); outline: none; }
.rozs-calc-email__input:focus { border-color: var(--rozs-green3); }
.rozs-calc-email__btn { padding: 10px 15px; border-radius: 9px; background: var(--rozs-green); color: #fff; font-family: var(--rozs-font-sans); font-weight: 700; font-size: 12px; cursor: pointer; border: none; }

.rozs-calc-submit { display: block; width: 100%; text-align: center; padding: 14px; border-radius: 11px; background: var(--rozs-amber2); color: #fff; font-family: var(--rozs-font-sans); font-weight: 700; font-size: 14px; box-shadow: 0 4px 20px rgba(232,150,10,0.3); margin-bottom: 10px; text-decoration: none; }
.rozs-calc-note { font-family: var(--rozs-font-sans); font-size: 10.5px; color: var(--rozs-text4); text-align: center; margin-bottom: 16px; }

/* Dlaczego ROZS */
.rozs-calc-why { padding: 16px 18px; background: var(--rozs-cream); border: 1px solid var(--rozs-border2); border-radius: 12px; }
.rozs-calc-why__title { font-family: var(--rozs-font-sans); font-size: 10px; font-weight: 700; color: var(--rozs-text4); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.rozs-calc-why__items { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rozs-calc-why__item { display: flex; align-items: flex-start; gap: 7px; font-family: var(--rozs-font-sans); font-size: 11.5px; color: var(--rozs-text3); line-height: 1.5; }
.rozs-calc-why__check { color: var(--rozs-green3); font-weight: 800; flex-shrink: 0; }

/* Procesy CTA */
.rozs-calc-procesy-cta { padding: 24px 0; text-align: center; }
.rozs-calc-procesy-cta__icon { font-size: 28px; margin-bottom: 10px; }
.rozs-calc-procesy-cta__title { font-family: var(--rozs-font-sans); font-size: 14px; font-weight: 600; color: var(--rozs-text2); margin-bottom: 6px; }
.rozs-calc-procesy-cta__desc { font-family: var(--rozs-font-serif); font-size: 13px; color: var(--rozs-text4); margin-bottom: 14px; }

/* ══════════════════════════════════════════════
   WOJEWÓDZTWA
══════════════════════════════════════════════ */
.home-voivodeships__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.woj-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  background: var(--rozs-white);
  border: 1px solid var(--rozs-border);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s;
}

.woj-item:hover {
  border-color: var(--rozs-green3);
  background: var(--rozs-green-pale);
}

.woj-item__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rozs-green3);
  flex-shrink: 0;
}

.woj-item__name {
  font-family: var(--rozs-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--rozs-text2);
}

.woj-item__arrow {
  font-size: 10px;
  color: var(--rozs-green3);
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.15s;
}

.woj-item:hover .woj-item__arrow { opacity: 1; }

.home-voivodeships__footer,
.home-faq__footer {
  text-align: center;
  margin-top: 24px;
}

.rozs-faq-more-link {
  font-family: var(--rozs-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--rozs-green2);
  text-decoration: none;
}

.rozs-faq-more-link:hover {
  color: var(--rozs-green);
  text-decoration: underline;
}

/* ══════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════ */
.home-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.faq-item {
  background: var(--rozs-cream);
  border: 1px solid var(--rozs-border);
  border-radius: 13px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: var(--rozs-green3);
  background: var(--rozs-white);
}

.faq-item__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
  padding: 18px 20px;
  font-family: var(--rozs-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rozs-text);
  line-height: 1.45;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.faq-item.is-open .faq-item__question { color: var(--rozs-green2); }

.faq-item__arrow {
  font-size: 14px;
  color: var(--rozs-text4);
  flex-shrink: 0;
  transition: transform 0.25s;
  margin-top: 2px;
}

.faq-item.is-open .faq-item__arrow {
  transform: rotate(180deg);
  color: var(--rozs-green3);
}

.faq-item__answer {
  padding: 0 20px 18px;
  border-top: 1px solid var(--rozs-border);
  padding-top: 13px;
}

.faq-item__answer p {
  font-family: var(--rozs-font-serif);
  font-size: 13.5px;
  color: var(--rozs-text3);
  line-height: 1.75;
  margin: 0;
}

.faq-item__link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--rozs-font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--rozs-green2);
  text-decoration: none;
  border-bottom: 1px solid var(--rozs-green-pale2);
}

.faq-item__link:hover {
  border-color: var(--rozs-green3);
  color: var(--rozs-green);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .home-hero__grid        { grid-template-columns: 1fr; }
  .home-hero__card-wrap   { display: none; } /* karta schowana na tablet */
  .home-pillars__grid     { grid-template-columns: repeat(2, 1fr); }
  .home-voivodeships__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .home-pillars__grid       { grid-template-columns: 1fr 1fr; }
  .rozs-calc-fields         { grid-template-columns: 1fr; }
  .rozs-calc-why__items     { grid-template-columns: 1fr; }
  .home-faq__grid           { grid-template-columns: 1fr; }
  .home-voivodeships__grid  { grid-template-columns: repeat(2, 1fr); }
  .home-hero__stats         { flex-wrap: wrap; }
  .hero-stat                { flex: 0 0 45%; margin-bottom: 12px; }
}

@media (max-width: 480px) {
  .home-pillars__grid       { grid-template-columns: 1fr; }
  .home-voivodeships__grid  { grid-template-columns: 1fr 1fr; }
  .rozs-calc-tabs           { flex-direction: column; }
  .home-hero__buttons       { flex-direction: column; }
  .home-hero__buttons .rozs-btn { width: 100%; justify-content: center; }
}
