/*
Theme Name: Wendach
Theme URI: https://wendach.pl
Author: Wendach
Author URI: https://wendach.pl
Description: Jednostronicowy (one-page) motyw WordPress dla firmy dekarskiej Wendach. Ciemny grafit, biel i ciepły pomarańcz. Sekcje: Hero, O nas, Usługi, Realizacje, Gwarancja, Obszar, Kontakt.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: wendach
Tags: one-page, business, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ===========================================================
   Zmienne / paleta
   =========================================================== */
:root {
  --graphite-dark: #1c1f26;
  --graphite: #2a2e38;
  --background: #fbfaf8;
  --foreground: #1f232b;
  --card: #ffffff;
  --muted: #f3f2ef;
  --muted-foreground: #6b7180;
  --border: #e6e6ea;
  --primary: #e8772e;     /* warm orange */
  --primary-foreground: #1c1f26;
  --accent: #f0a64b;      /* gold-amber */
  --white: #ffffff;
  --radius: 12px;
  --shadow-card: 0 10px 30px -15px rgba(28, 31, 38, 0.25);
  --shadow-glow: 0 20px 60px -20px rgba(232, 119, 46, 0.45);
  --container: 1200px;
  --gradient-accent: linear-gradient(135deg, #ef7e2e, #f0a64b);
}

/* ===========================================================
   Reset / podstawy
   =========================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}
h1, h2, h3, h4 {
  font-family: "Montserrat", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 800;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}
.section-title {
  font-size: clamp(28px, 5vw, 48px);
  margin-top: 12px;
}
.section-lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted-foreground);
  max-width: 640px;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 15px 28px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, opacity .15s ease;
}
.btn-primary {
  background-image: var(--gradient-accent);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: scale(1.02); }
.btn-outline {
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ===========================================================
   Header / nawigacja
   =========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(28, 31, 38, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--white); }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 8px;
  background-image: var(--gradient-accent);
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  color: var(--primary-foreground);
}
.brand-name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 18px; }

.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--primary); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none; border: none; color: var(--white);
  cursor: pointer; padding: 8px; font-size: 24px;
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--graphite-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: .5;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--graphite-dark), rgba(28,31,38,.85), transparent);
}
.hero .container { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 120px; }
.hero-inner { max-width: 760px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(232,119,46,.4);
  background: rgba(232,119,46,.1);
  padding: 6px 16px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary);
}
.hero h1 {
  margin-top: 24px;
  font-size: clamp(40px, 8vw, 72px);
  color: var(--white);
}
.hero h1 .accent {
  background-image: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { margin-top: 24px; font-size: 20px; color: rgba(255,255,255,.75); max-width: 620px; }
.hero p strong { color: var(--white); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 520px;
}
.hero-stat { border-left: 2px solid rgba(232,119,46,.6); padding-left: 12px; }
.hero-stat .num { font-family: "Montserrat", sans-serif; font-size: 24px; font-weight: 800; color: var(--white); }
.hero-stat .label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); }

/* ===========================================================
   O nas
   =========================================================== */
.about { background: var(--background); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-badge {
  display: inline-flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--graphite-dark); color: var(--white);
  padding: 24px 28px; max-width: 220px;
}
.about-badge .big { font-family: "Montserrat", sans-serif; font-size: 40px; font-weight: 900; color: var(--primary); }
.about p { margin-top: 20px; font-size: 17px; color: var(--muted-foreground); }

/* ===========================================================
   Usługi
   =========================================================== */
.services { background: var(--muted); }
.cards-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--graphite-dark);
  color: var(--primary);
  font-size: 24px;
}
.card h3 { margin-top: 20px; font-size: 20px; }
.card p { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); }

/* ===========================================================
   Realizacje / galeria
   =========================================================== */
.gallery { background: var(--background); }
.gallery-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: 16px;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-card);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(28,31,38,.85), transparent);
  color: var(--white);
  font-weight: 600; font-size: 14px;
}

/* ===========================================================
   Gwarancja
   =========================================================== */
.warranty { background: var(--background); }
.warranty-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quote {
  margin: 64px auto 0;
  max-width: 760px; text-align: center;
}
.quote blockquote { font-family: "Montserrat", sans-serif; font-size: clamp(22px, 3vw, 30px); font-style: italic; line-height: 1.3; }
.quote cite { display: block; margin-top: 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); font-style: normal; }

/* ===========================================================
   Obszar
   =========================================================== */
.area { background: var(--graphite-dark); color: var(--white); }
.area .section-lead { color: rgba(255,255,255,.7); }
.area-list { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.area-chip {
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
}

/* ===========================================================
   Kontakt
   =========================================================== */
.contact { background: var(--graphite-dark); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact h2 { color: var(--white); }
.contact .section-lead { color: rgba(255,255,255,.7); }
.contact-rows { margin-top: 40px; display: grid; gap: 16px; }
.contact-row { display: flex; align-items: center; gap: 16px; }
.contact-row .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--primary); font-size: 18px;
}
.contact-row .ico-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); }
.contact-row .ico-value { font-weight: 600; }

.contact-form {
  padding: 32px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.contact-form h3 { font-size: 22px; }
.contact-form .hint { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.field label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); }
.field input, .field textarea {
  margin-top: 8px; width: 100%;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  padding: 12px 16px;
  color: var(--white);
  font-family: inherit; font-size: 15px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-primary { width: 100%; justify-content: center; margin-top: 20px; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { background: var(--graphite-dark); color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 56px 0; }
.footer-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--primary); margin-bottom: 16px; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,.5);
}

/* ===========================================================
   Mobilny pasek telefonu
   =========================================================== */
.mobile-call-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--graphite-dark);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 12px; gap: 8px;
}
.mobile-call-bar .btn { flex: 1; justify-content: center; padding: 12px; font-size: 14px; }

/* ===========================================================
   Responsywność
   =========================================================== */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .warranty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: block;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--graphite-dark);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 24px;
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .main-nav.open a { display: block; padding: 10px 0; color: rgba(255,255,255,.9); }
  .cards-grid, .gallery-grid, .warranty-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }

  /* Hero – dopasowanie do telefonu */
  .hero { min-height: auto; }
  .hero .container { padding-top: 104px; padding-bottom: 72px; }
  .hero::after { background: linear-gradient(180deg, rgba(28,31,38,.55), rgba(28,31,38,.92)); }
  .hero-inner { max-width: 100%; }
  .hero h1 { font-size: clamp(32px, 11vw, 44px); }
  .hero p { font-size: 16px; max-width: 100%; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 100%; }
  .hero-stat .num { font-size: 20px; }

  .mobile-call-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* ====== Kod QR w sekcji Kontakt ====== */
.contact-qr{
	margin-top:28px;
	display:flex;
	align-items:center;
	gap:16px;
	flex-wrap:wrap;
}
.contact-qr img{
	width:160px;
	height:160px;
	background:#fff;
	padding:10px;
	border-radius:12px;
	box-shadow:0 6px 20px rgba(0,0,0,.12);
}
.contact-qr-label{
	font-size:.95rem;
	font-weight:600;
	max-width:180px;
	line-height:1.4;
}
