/* ==========================================================================
   PRESCOT LED — BAZA WIEDZY & FAQ (CANONICAL ARCHITECTURAL SYSTEM)
   Direct Harmony with Prescot Brand & Contact Design System
   ========================================================================== */

:root {
  --orange: #de4b26;
  --orange-light: #ff7048;
  --navy: #151d26;
  --navy-soft: #212b36;
  --void: #121820;
  --paper: #f3f1ec;
  --paper-deep: #e6e2da;
  --ink: #18202a;
  --muted: #64748b;
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: rgba(24, 32, 42, .15);
  --radius: 26px;
}

* { box-sizing: border-box; }

html {
  height: auto !important;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: auto !important;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::selection { color: #fff; background: var(--orange); }

a { color: inherit; }

button, input, select, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--orange);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.page-glow {
  position: fixed;
  z-index: -1;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .13;
  pointer-events: none;
}

.page-glow-one { top: 18%; left: -20%; background: var(--orange); }
.page-glow-two { right: -20%; bottom: 10%; background: #61758d; }

/* HERO SECTION */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(800px, 100svh);
  width: 100%;
  overflow: hidden;
  padding: 160px clamp(22px, 7vw, 112px) 140px;
  isolation: isolate;
  background: var(--paper);
  box-sizing: border-box;
}

.hero-photo, .hero-shade { position: absolute; inset: 0; }

.hero-photo { z-index: -4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0.15; }

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(243, 241, 236, .96) 0%, rgba(243, 241, 236, .76) 42%, rgba(243, 241, 236, .25) 80%),
    linear-gradient(0deg, rgba(243, 241, 236, .92) 0%, transparent 55%);
}

.hero-content { max-width: 820px; }

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--orange) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero .eyebrow span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  margin: 0 0 28px;
  color: var(--ink) !important;
  font-family: "Outfit", sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-lead {
  max-width: 580px;
  margin: 0 0 42px;
  color: var(--ink) !important;
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 500;
  line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
}

.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.button-primary { color: #fff; background: var(--orange); }
.button-primary:hover { background: #f05a34; }
.button-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); backdrop-filter: blur(18px); }
.button-ghost:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); }

.hero-caption {
  position: absolute;
  right: clamp(22px, 6vw, 96px);
  bottom: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-caption-index { color: var(--orange-light); }
.hero-caption-line { width: 55px; height: 1px; background: rgba(255, 255, 255, .34); }

/* KNOWLEDGE SECTION */
.knowledge-section {
  padding: clamp(80px, 10vw, 150px) clamp(22px, 6vw, 96px);
  color: var(--ink);
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  max-width: 1320px;
  margin: 0 auto 50px;
  column-gap: 60px;
}

.section-heading .eyebrow { grid-column: 1 / -1; }

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.section-heading > p:last-child {
  max-width: 540px;
  align-self: end;
  margin: 0;
  color: #66717e;
  font-size: 16px;
  line-height: 1.75;
}

/* SEARCH BAR */
.bw-search-box {
  max-width: 1320px;
  margin: 0 auto 30px;
  position: relative;
}

.bw-search-inner {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--line-light);
  border-radius: 18px;
  padding: 10px 20px;
  box-shadow: 0 8px 24px rgba(24, 32, 42, .04);
  transition: all .25s ease;
}

.bw-search-inner:focus-within {
  border-color: var(--orange);
  box-shadow: 0 12px 32px rgba(222, 75, 38, .12);
}

.bw-search-inner svg {
  width: 22px;
  height: 22px;
  color: #8c959e;
  margin-right: 14px;
  flex-shrink: 0;
}

.bw-search-inner input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}

.bw-search-inner input::placeholder {
  color: #8c959e;
}

.bw-search-tag {
  font-size: 11px;
  font-weight: 800;
  color: #78828c;
  background: var(--paper-deep);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* CATEGORY CARDS GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-width: 1320px;
  margin: 0 auto 50px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid var(--line-light);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(24, 32, 42, 0.02);
  outline: none;
}

.cat-card:hover {
  border-color: rgba(222, 75, 38, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(24, 32, 42, 0.06);
}

.cat-card.active {
  background: #ffffff;
  border-color: var(--orange);
  box-shadow: 0 10px 30px rgba(222, 75, 38, 0.18);
  transform: translateY(-3px);
}

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  transition: all 0.25s ease;
}

.cat-card:hover .cat-icon,
.cat-card.active .cat-icon {
  background: #fff5f2;
  color: var(--orange);
}

.cat-icon svg {
  width: 22px;
  height: 22px;
}

.cat-title {
  font-family: "Outfit", sans-serif;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 3px;
  text-align: center;
}

.cat-count {
  font-size: 11px;
  color: #78828c;
  font-weight: 600;
}

/* FAQ ACCORDIONS GRID */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto 80px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--line-light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(24, 32, 42, .03);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.faq-card:hover {
  border-color: rgba(222, 75, 38, .4);
  box-shadow: 0 8px 26px rgba(24, 32, 42, .06);
}

.faq-card[open] {
  border-color: var(--orange);
}

.faq-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  user-select: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-icon-arrow {
  width: 22px;
  height: 22px;
  color: #8c959e;
  transition: transform .25s ease, color .25s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-card[open] .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--orange);
}

.faq-answer {
  padding: 0 28px 26px;
  font-size: 15px;
  line-height: 1.75;
  color: #4a5568;
  border-top: 1px solid rgba(24, 32, 42, .06);
  margin-top: -4px;
  padding-top: 18px;
}

.faq-answer p {
  margin: 0 0 14px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  background: #fff5f2;
  border: 1px solid rgba(222, 75, 38, .2);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* CALCULATOR SECTION */
.calc-section {
  padding: clamp(80px, 10vw, 150px) clamp(22px, 7vw, 112px);
  background: var(--navy);
  color: #fff;
}

.calc-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.calc-box {
  background: rgba(10, 14, 19, .5);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 46px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.calc-row {
  margin-bottom: 22px;
}

.calc-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #c5ccd3;
  margin-bottom: 8px;
}

.calc-row select,
.calc-row input[type="number"],
.calc-row input[type="range"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .04);
  outline: none;
  font-size: 15px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.calc-row input[type="range"] {
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  -webkit-appearance: none;
  margin: 15px 0;
}

.calc-row input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.calc-row input[type="range"]::-webkit-slider-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
  box-shadow: 0 4px 10px rgba(222, 75, 38, 0.5);
  border: 3px solid #fff;
  transition: transform .2s ease;
}

.calc-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-row input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(222, 75, 38, 0.2);
}

.calc-row input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.calc-row input[type="range"]::-moz-range-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(222, 75, 38, 0.5);
  border: 3px solid #fff;
}

.calc-row select:focus,
.calc-row input[type="number"]:focus {
  border-color: var(--orange);
}

.calc-row select option {
  color: var(--ink);
}

.calc-output-card {
  background: linear-gradient(135deg, rgba(222, 75, 38, .16) 0%, rgba(21, 29, 38, .6) 100%);
  border: 1.5px solid rgba(222, 75, 38, .35);
  border-radius: 18px;
  padding: 22px 26px;
  margin-top: 26px;
}

.calc-output-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 6px;
}

.calc-output-value {
  font-family: "Outfit", sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.calc-output-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .calc-container { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero { min-height: 720px; padding: 130px 20px 80px; align-items: center; }
  .hero-photo img { object-position: 61% 50%; }
  .hero-shade { background: linear-gradient(90deg, rgba(243, 241, 236, .96) 0%, rgba(243, 241, 236, .76) 42%, rgba(243, 241, 236, .25) 80%), linear-gradient(0deg, rgba(243, 241, 236, .92) 0%, transparent 55%); }
  h1 { font-size: clamp(40px, 11.5vw, 56px); line-height: .95; letter-spacing: -.05em; }
  .hero-lead { font-size: 15px; line-height: 1.65; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .button { width: 100%; }
  .hero-caption { display: none; }
  .knowledge-section, .calc-section { padding-right: 20px; padding-left: 20px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 14px 8px; }
  .faq-card summary { padding: 18px 20px; font-size: 15px; }
  .faq-answer { padding: 0 20px 20px; }
}
