/* =========================================================================
   FOTOWOLTAIKA SERWIS — Homepage
   ========================================================================= */

/* Full-bleed homepage: neutralise Storefront's constrained content wrapper */
.home #content > .col-full{ max-width:none; padding-left:0; padding-right:0; }
.home #content{ padding-top:0; }
.fv-home section{ overflow: clip; }

/* ---------- HERO ---------- */
.fv-hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(18,104,255,.30), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(22,199,132,.12), transparent 55%),
    linear-gradient(180deg, #0A0E17 0%, #0C1220 60%, #0A0E17 100%);
  color:#fff;
}
.fv-hero__grid{
  display:grid; grid-template-columns: 1.05fr .95fr; align-items:center; gap: 40px;
  padding: 84px 0 92px; min-height: 560px;
}
.fv-hero__eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  color:#dbe6ff; padding: 8px 15px; border-radius: var(--fv-pill);
  font-size:13px; font-weight:700; letter-spacing:.04em; margin-bottom: 24px;
}
.fv-hero__eyebrow .dot{ width:8px; height:8px; border-radius:50%; background: var(--fv-solar); box-shadow:0 0 0 4px rgba(255,176,32,.25); }
.fv-hero h1{
  color:#fff; font-size: clamp(38px, 5.6vw, 68px); line-height:1.02; margin:0 0 20px;
}
.fv-hero h1 .grad{
  background: linear-gradient(90deg, #5aa0ff, #16C784);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.fv-hero__lead{ font-size: 19px; line-height:1.6; color:#b9c2d0; max-width: 540px; margin:0 0 32px; }
.fv-hero__cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 34px; }
.fv-hero__stats{ display:flex; gap: 34px; flex-wrap:wrap; }
.fv-hero__stats .stat b{ display:block; font-family:var(--fv-font-display); font-size:30px; color:#fff; font-weight:800; line-height:1; }
.fv-hero__stats .stat span{ font-size:13px; color:#8f9aab; }
.fv-hero__visual{ position:relative; }
.fv-hero__panel{
  position:relative; border-radius: var(--fv-r-xl); overflow:hidden;
  background: linear-gradient(150deg, #10203f, #0c1626);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  aspect-ratio: 4/3.4;
}
.fv-hero__panel img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.96; }
.fv-hero__chip{
  position:absolute; z-index:3; background: rgba(10,14,23,.72);
  backdrop-filter: blur(8px); border:1px solid rgba(255,255,255,.14);
  border-radius: var(--fv-r); padding: 12px 15px; color:#fff; box-shadow: var(--fv-shadow-lg);
  display:flex; align-items:center; gap:11px;
}
.fv-hero__chip .ic{ width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; background: rgba(18,104,255,.22); color:#7fb0ff; }
.fv-hero__chip .ic svg{ width:20px; height:20px; }
.fv-hero__chip b{ display:block; font-size:15px; line-height:1.1; }
.fv-hero__chip span{ font-size:12px; color:#9aa4b2; }
.fv-hero__chip.c1{ top: 22px; left:-18px; }
.fv-hero__chip.c2{ bottom: 26px; right:-14px; }
.fv-hero__wave{ position:absolute; left:0; right:0; bottom:-1px; height:60px; background:#fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60 L0 30 Q 360 0 720 22 T 1440 20 L1440 60 Z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60 L0 30 Q 360 0 720 22 T 1440 20 L1440 60 Z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat; }

/* ---------- Brand / trust strip ---------- */
.fv-brands{ background:#fff; border-bottom:1px solid var(--fv-border); }
.fv-brands__inner{ display:flex; align-items:center; justify-content:center; gap: 44px; flex-wrap:wrap; padding: 26px 0; }
.fv-brands__label{ font-size:13px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--fv-muted); }
.fv-brands__list{ display:flex; align-items:center; gap: 38px; flex-wrap:wrap; }
.fv-brands__list span{ font-family:var(--fv-font-display); font-weight:800; font-size:22px; color:#aeb6c2; letter-spacing:-.01em; transition:color .2s; }
.fv-brands__list span:hover{ color:var(--fv-ink); }

/* ---------- Value props ---------- */
.fv-values{ display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.fv-value{
  background:#fff; border:1px solid var(--fv-border); border-radius: var(--fv-r);
  padding: 26px 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.fv-value:hover{ transform: translateY(-4px); box-shadow: var(--fv-shadow); border-color: transparent; }
.fv-value .ic{ width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background: var(--fv-primary-050); color: var(--fv-primary); margin-bottom:16px; }
.fv-value .ic svg{ width:24px; height:24px; }
.fv-value h3{ font-size:18px; margin:0 0 8px; }
.fv-value p{ margin:0; color:var(--fv-muted); font-size:14.5px; line-height:1.55; }

/* ---------- Category showcase ---------- */
.fv-cats{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* Jednolita siatka (wszystkie kategorie dynamicznie) */
.fv-cats--grid{ grid-auto-rows: 1fr; }
.fv-cats--grid .fv-cat{ min-height: 190px; }
.fv-cat{
  position:relative; display:flex; flex-direction:column; justify-content:flex-end;
  min-height: 220px; border-radius: var(--fv-r-lg); overflow:hidden; padding: 22px;
  background: var(--fv-ink); color:#fff; isolation:isolate;
  border:1px solid var(--fv-border);
}
.fv-cat img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; transition: transform .5s ease; }
.fv-cat::after{ content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(10,14,23,.05) 0%, rgba(10,14,23,.35) 45%, rgba(10,14,23,.86) 100%); }
.fv-cat:hover img{ transform: scale(1.06); }
.fv-cat--nophoto{ background: linear-gradient(150deg, #12203c, #0b1220); }
/* Grafika tła odsłaniana po najechaniu (kafle bez własnej miniatury) */
.fv-cat--nophoto::before{
  content:""; position:absolute; inset:0; z-index:-2;
  background: url('https://fotowoltaika-serwis.pl/wp-content/uploads/2026/07/fotowoltaika.png') center center / cover no-repeat;
  opacity:0; transform: scale(1.04);
  transition: opacity .45s ease, transform .6s ease;
}
.fv-cat--nophoto:hover::before{ opacity:1; transform: scale(1); }
.fv-cat__count{ position:absolute; top:16px; right:16px; z-index:1;
  background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.2);
  font-size:12px; font-weight:700; padding:5px 11px; border-radius:999px; color:#fff; backdrop-filter: blur(4px); }
.fv-cat h3{ color:#fff; font-size:19px; margin:0 0 4px; position:relative; z-index:1; }
.fv-cat .go{ display:inline-flex; align-items:center; gap:7px; font-size:13.5px; font-weight:700; color:#ffdd9e; position:relative; z-index:1; }
.fv-cat .go svg{ width:16px; height:16px; transition: transform .2s; }
.fv-cat:hover .go svg{ transform: translateX(4px); }
.fv-cat--wide{ grid-column: span 2; }
.fv-cat--tall{ grid-row: span 2; min-height: 458px; }

/* ---------- Product grid ---------- */
.fv-products{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fv-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 26px; }
.fv-tab{ border:1px solid var(--fv-border-2); background:#fff; color:var(--fv-text-2);
  padding:9px 18px; border-radius:999px; font-weight:600; font-size:14px; cursor:pointer; }
.fv-tab.is-active,.fv-tab:hover{ background:var(--fv-ink); color:#fff; border-color:var(--fv-ink); }

/* ---------- Split feature (service / savings) ---------- */
.fv-split{ display:grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--fv-r-xl); overflow:hidden; box-shadow: var(--fv-shadow); }
.fv-split__media{ position:relative; min-height: 460px; background:#0c1424; }
.fv-split__media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fv-split__body{ background:#fff; padding: 56px 52px; display:flex; flex-direction:column; justify-content:center; }
.fv-split__body h2{ font-size: clamp(26px,3vw,38px); margin:14px 0 16px; }
.fv-split__body p{ color:var(--fv-muted); font-size:16.5px; margin:0 0 22px; }
.fv-checklist{ list-style:none; margin:0 0 30px; padding:0; display:flex; flex-direction:column; gap:13px; }
.fv-checklist li{ display:flex; gap:12px; align-items:flex-start; font-size:15.5px; color:var(--fv-text); font-weight:500; }
.fv-checklist .ck{ flex:0 0 auto; width:24px; height:24px; border-radius:50%; background:var(--fv-accent); color:#fff; display:flex; align-items:center; justify-content:center; }
.fv-checklist .ck svg{ width:14px; height:14px; }

/* ---------- CTA band ---------- */
.fv-ctaband{
  position:relative; overflow:hidden; border-radius: var(--fv-r-xl); padding: 60px 56px;
  background:
    radial-gradient(700px 320px at 90% 10%, rgba(255,255,255,.30), transparent 60%),
    linear-gradient(120deg, #FFC24D, #F59E00);
  color:#3a2c00; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.fv-ctaband h2{ color:#1a1200; font-size: clamp(26px,3vw,40px); margin:0 0 10px; max-width: 640px; }
.fv-ctaband p{ color:#5c4600; font-size:17px; margin:0; max-width: 560px; }
.fv-ctaband__promo{ margin-top:16px !important; font-size:14.5px; color:#6b5200; }
.fv-ctaband__promo a{ color:#1a1200; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.fv-ctaband__promo a:hover{ color:#000; }
.fv-ctaband__actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Testimonials ---------- */
.fv-quotes{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.fv-quote{ background:#fff; border:1px solid var(--fv-border); border-radius:var(--fv-r); padding:26px 24px; }
.fv-quote .stars{ color:var(--fv-solar); font-size:15px; letter-spacing:2px; margin-bottom:12px; }
.fv-quote p{ font-size:15.5px; color:var(--fv-text); margin:0 0 18px; line-height:1.6; }
.fv-quote .who{ display:flex; align-items:center; gap:12px; }
.fv-quote .who .av{ width:42px; height:42px; border-radius:50%; background:var(--fv-primary-050); color:var(--fv-primary-600); display:flex; align-items:center; justify-content:center; font-weight:800; }
.fv-quote .who b{ font-size:14.5px; }
.fv-quote .who span{ font-size:13px; color:var(--fv-muted); display:block; }

/* ---------- Newsletter ---------- */
.fv-news{ background: var(--fv-ink); border-radius: var(--fv-r-xl); padding: 52px 48px; text-align:center; color:#fff; position:relative; overflow:hidden; }
.fv-news::before{ content:""; position:absolute; inset:0; background: radial-gradient(600px 260px at 50% -30%, rgba(18,104,255,.4), transparent 60%); }
.fv-news > *{ position:relative; }
.fv-news h2{ color:#fff; font-size: clamp(24px,3vw,34px); margin:0 0 10px; }
.fv-news p{ color:#aab3c0; margin:0 auto 24px; max-width: 520px; }
.fv-news form{ display:flex; gap:10px; max-width: 500px; margin:0 auto; }
.fv-news input[type="email"]{ flex:1; border:1px solid #2a3446; background:#141b28; color:#fff; border-radius:var(--fv-pill); padding: 15px 22px; font-size:15px; outline:none; }
.fv-news input[type="email"]::placeholder{ color:#7c8698; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .fv-hero__grid{ grid-template-columns: 1fr; padding: 60px 0 70px; }
  .fv-hero__visual{ display:none; }
  .fv-values{ grid-template-columns: repeat(2,1fr); }
  .fv-cats{ grid-template-columns: repeat(2,1fr); }
  .fv-cat--tall{ grid-row: span 1; min-height:220px; }
  .fv-cat--wide{ grid-column: span 2; }
  .fv-products{ grid-template-columns: repeat(3,1fr); }
  .fv-quotes{ grid-template-columns: 1fr; }
  .fv-split{ grid-template-columns: 1fr; }
  .fv-split__media{ min-height: 280px; }
}
@media (max-width: 640px){
  .fv-values{ grid-template-columns: 1fr; }
  .fv-cats{ grid-template-columns: 1fr; }
  .fv-cat--wide{ grid-column: span 1; }
  .fv-products{ grid-template-columns: repeat(2,1fr); gap:12px; }
  .fv-ctaband{ padding: 40px 28px; }
  .fv-split__body{ padding: 36px 26px; }
  .fv-news form{ flex-direction:column; }
}
@media (max-width: 400px){
  .fv-products{ grid-template-columns: 1fr; }
}
