/*
Theme Name: Wingrow
Theme URI: https://solaro.pl/
Author: WP Media
Author URI: https://solaro.pl/
Description: Motyw landing page dla markiz tarasowych Solaro / Dragon. Jednostronicowy landing kampanijny (Meta Ads) z sekcjami: hero, przewagi, detale techniczne, personalizacja, realizacje, porównanie, FAQ i formularz wyceny.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wingrow
Tags: landing-page, one-page, custom-colors, custom-menu
*/

/* ============================================================
   1. RESET / ZMIENNE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #1e1e1e;   /* główny tekst na jasnym */
  --ink-soft:   #4a4a4a;   /* tekst drugorzędny */
  --graphite:   #262626;   /* header / ciemne bloki / footer */
  --graphite-2: #2f2f2f;   /* ciemne tło alternatywne */
  --graphite-3: #383838;   /* obramowania na ciemnym */
  --orange:     #e8792b;   /* akcent Solaro */
  --orange-dk:  #cf6a1f;   /* hover akcentu */
  --grey-bg:    #f2f2f2;   /* jasne tło sekcji */
  --grey-bg-2:  #eaeaea;
  --line:       #e2e2e2;   /* delikatne linie na jasnym */
  --white:      #ffffff;
  --maxw:       1180px;
  --radius:     4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   2. TYPOGRAFIA / ELEMENTY WSPÓLNE
   ============================================================ */
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.15rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 76px 0; }
.section--tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.08rem; }

.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* Przyciski */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dk); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ============================================================
   3. HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--graphite);
  border-bottom: 1px solid var(--graphite-3);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .logo-main {
  font-size: 1.7rem; font-weight: 800; letter-spacing: 0.22em;
  color: #fff; padding-bottom: 4px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.logo .logo-sub {
  font-size: 0.62rem; letter-spacing: 0.42em; color: var(--orange);
  margin-top: 5px; padding-left: 2px;
}
.main-nav { display: flex; gap: 30px; }
.main-nav a {
  color: #d8d8d8; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: #fff; border-color: var(--orange); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn { padding: 10px 20px; font-size: 0.9rem; }
.nav-toggle { display: none; }

/* ============================================================
   4. HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--graphite);
  color: #fff;
  overflow: hidden;
}
/* Placeholder pod duże zdjęcie realizacji (markiza nad tarasem, ciepłe światło).
   Docelowo: podmienić .hero-media na <img> lub background-image. */
.hero-media {
  position: absolute; inset: 0;
  background-color: #333;
  background-image:
    repeating-linear-gradient(45deg, #2e2e2e 0 22px, #313131 22px 44px);
  opacity: .55;
}
.hero-media::after {
  /* solidna nakładka dla czytelności tekstu (bez gradientu) */
  content: ""; position: absolute; inset: 0;
  background: rgba(20,20,20,.55);
}
.hero-inner { position: relative; z-index: 2; padding: 92px 0 68px; }
/* .hero-inner .container { max-width: 860px; } */
.hero h1 { color: #fff; }
.hero .hero-sub { margin-top: 20px; font-size: 1.2rem; color: #e6e6e6; max-width: 620px; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-phone { margin-top: 18px; font-size: 0.95rem; color: #cfcfcf; }
.hero-phone a { color: #fff; font-weight: 700; border-bottom: 1px solid var(--orange); }

/* Pasek zaufania pod hero */
.trust-bar { position: relative; z-index: 2; background: rgba(0,0,0,.35); border-top: 1px solid var(--graphite-3); }
.trust-bar .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 22px; padding-bottom: 22px;
}
.trust-item { color: #eaeaea; font-size: 0.92rem; display: flex; gap: 10px; align-items: flex-start; }
.trust-item .mark { color: var(--orange); font-weight: 800; }

/* ============================================================
   5. BLOKI TREŚCI — SIATKI
   ============================================================ */
.bg-grey { background: var(--grey-bg); }
.bg-white { background: var(--white); }

/* Sekcja "Dlaczego" — dwie kolumny: narracja + lista */
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.why-list { list-style: none; }
.why-list li {
  padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line);
  position: relative; color: var(--ink-soft);
}
.why-list li::before {
  content: ""; position: absolute; left: 0; top: 24px;
  width: 12px; height: 12px; background: var(--orange);
}
.why-list li strong { color: var(--ink); }

/* Kafle przewag */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--orange); transform: translateY(-3px); }
.card .icon {
  width: 46px; height: 46px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--orange); border-radius: 50%;
  color: var(--orange);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.96rem; color: var(--ink-soft); }

/* Detale techniczne — naprzemienne rzędy obraz/tekst */
.detail-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.detail-row:last-child { border-bottom: none; }
.detail-row.reverse .detail-text { order: 2; }
.detail-row.reverse .detail-media { order: 1; }
.detail-text h3 { font-size: 1.35rem; margin-bottom: 12px; }
.detail-text p { color: var(--ink-soft); }
.detail-stat {
  display: inline-block; margin-top: 16px;
  font-size: 1.05rem; font-weight: 800; color: var(--ink);
  border-left: 4px solid var(--orange); padding-left: 12px;
}

/* Placeholdery zdjęć */
.detail-media .ph-img {
 overflow: hidden;
}

.ph-img {
  background-color: #dcdcdc;
  background-image: repeating-linear-gradient(45deg, #d7d7d7 0 18px, #dedede 18px 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #7a7a7a; font-size: 0.82rem; text-align: center;
  min-height: 240px;
}
.ph-img span { max-width: 260px; }
.ph-img.dark {
  background-color: #313131;
  background-image: repeating-linear-gradient(45deg, #2c2c2c 0 18px, #333 18px 36px);
  color: #9a9a9a; border-color: var(--graphite-3);
}

.pers-item img {
    max-height: 240px;
    width: 100%;
    object-fit: cover;
}

/* ============================================================
   6. BLOK CIEMNY — SŁOŃCE I DESZCZ (atmosfera / premium)
   ============================================================ */
.dark-block { background: var(--graphite); color: #fff; }
.dark-block .eyebrow { color: var(--orange); }
.dark-block h2 { color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.rain-list { list-style: none; margin-top: 22px; }
.rain-list li {
  padding: 12px 0 12px 30px; position: relative; color: #dcdcdc; border-bottom: 1px solid var(--graphite-3);
}
.rain-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 12px; background: var(--orange); }
.disclaimer { margin-top: 20px; font-size: 0.86rem; color: #a9a9a9; font-style: italic; }

/* ============================================================
   7. PERSONALIZACJA
   ============================================================ */
.pers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pers-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pers-item .ph-img { min-height: 200px; border: none; border-radius: 0; }
.pers-item .pers-body { padding: 20px 22px; }
.pers-item h3 { margin-bottom: 6px; }
.pers-item p { font-size: 0.94rem; color: var(--ink-soft); }
/* Próbnik kolorów lakieru (13) */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.swatch { width: 34px; height: 34px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); }

/* ============================================================
   8. REALIZACJE (galeria)
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .ph-img { min-height: 260px; }
.gallery .wide { grid-column: span 2; }

/* ============================================================
   9. PORÓWNANIE
   ============================================================ */
.compare-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; }
table.compare th, table.compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
table.compare thead th { background: var(--graphite); color: #fff; font-weight: 700; }
table.compare thead th.solaro { background: var(--orange); }
table.compare td:first-child { font-weight: 700; color: var(--ink); width: 26%; }
table.compare .yes { color: var(--ink); font-weight: 600; }
table.compare .yes::before { content: "✔ "; color: var(--orange); font-weight: 800; }
table.compare .no { color: #8a8a8a; }
table.compare tbody tr:nth-child(even) td { background: #fafafa; }

/* ============================================================
   10. FAQ (details/summary — bez JS)
   ============================================================ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; background: #fff;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 54px 20px 22px;
  font-weight: 700; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--orange); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 22px 22px; color: var(--ink-soft); font-size: 0.98rem; }
.faq .faq-note { font-size: 0.86rem; color: #8a8a8a; font-style: italic; margin-top: 8px; }

/* ============================================================
   11. FORMULARZ / CTA
   ============================================================ */
.form-block { background: var(--graphite); color: #fff; }
.form-block .eyebrow { color: var(--orange); }
.form-block h2 { color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.form-side p { color: #cfcfcf; margin-top: 14px; }
.form-trust { list-style: none; margin-top: 26px; }
.form-trust li { padding: 10px 0 10px 28px; position: relative; color: #e2e2e2; font-size: 0.96rem; }
.form-trust li::before { content: "✔"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.form-phone { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--graphite-3); font-size: 0.95rem; color: #cfcfcf; }
.form-phone a { color: #fff; font-weight: 700; border-bottom: 1px solid var(--orange); }

form.lead-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 16px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.field .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: var(--radius);
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.intent-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.intent-group label {
  display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem;
  border: 1px solid #cfcfcf; border-radius: var(--radius); padding: 12px; cursor: pointer;
}
.intent-group input { width: auto; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--ink-soft); }
.consent input { width: auto; margin-top: 4px; }
form.lead-form .btn { width: 100%; margin-top: 8px; }
.form-micro { font-size: 0.82rem; color: #7a7a7a; margin-top: 12px; text-align: center; }

/* ============================================================
   12. FOOTER (spójny z solaro.pl)
   ============================================================ */
.site-footer { background: var(--graphite); color: #cfcfcf; padding: 60px 0 28px; border-top: 3px solid var(--orange); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--graphite-3); }
.footer-col h4 { color: #fff; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col p, .footer-col a { font-size: 0.92rem; line-height: 1.9; }
.footer-col a:hover { color: var(--orange); }
.footer-about { font-size: 0.92rem; line-height: 1.8; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 0.82rem; color: #9a9a9a; }
.footer-logo .logo-main { font-size: 1.4rem; }

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .main-nav, .header-cta .btn { display: none; }
  .why-grid, .split, .form-grid { grid-template-columns: 1fr; gap: 30px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pers-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide { grid-column: span 2; }
  .trust-bar .container { grid-template-columns: 1fr 1fr; }
  .detail-row, .detail-row.reverse .detail-text, .detail-row.reverse .detail-media { grid-template-columns: 1fr; order: initial; }
  .detail-row { gap: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .intent-group { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards, .pers-grid, .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: span 1; }
  .trust-bar .container { grid-template-columns: 1fr; }
  .field.row2 { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
}
