/*
Theme Name: Pracownia Reklamy
Theme URI: https://www.facebook.com/PracowniaReklamyPrzeworsk/
Author: Dariusz Grządziel
Author URI: https://www.facebook.com/PracowniaReklamyPrzeworsk/
Description: Motyw dedykowany dla Pracownia Plastyczna Usługi Reklamowe Dariusz Grządziel — firma reklamowa z Przeworska.
Version: 1.5.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: pracownia-reklamy
Tags: one-page, custom-logo, advertising, dark-theme
*/

/* ── RESET & VARIABLES ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --white: #f5f2ed;
  --accent: #FF8C00;
  --accent-dim: #d97700;
  --gray-dark: #1a1a1a;
  --gray-mid: #2a2a2a;
  --gray-text: #999;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ── WP ADMIN BAR FIX ── */
body.admin-bar nav.site-nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar nav.site-nav { top: 46px; }
}

/* ── PRELOADER ── */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5rem);
  color: var(--accent);
  letter-spacing: .15em;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.3} 50%{opacity:1} }

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,140,0,.08);
  transition: padding .3s ease;
}
nav.site-nav.scrolled { padding: .8rem 3rem; }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .12em;
  color: var(--accent);
  text-decoration: none;
}
.nav-logo span { color: var(--white); }

.nav-left {
  display: flex; align-items: center; gap: .8rem;
}
.nav-fb {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  color: var(--gray-text);
  transition: color .3s;
}
.nav-fb:hover { color: var(--accent); }
.nav-fb svg { width: 18px; height: 18px; }

.nav-links { display: flex; gap: 2.4rem; }
.nav-links a {
  color: var(--gray-text);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent); transition: width .3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 26px; height: 2px; background: var(--white);
  transition: transform .3s, opacity .3s;
  display: block;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255,140,0,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,140,0,.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--black), var(--gray-dark));
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,140,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,140,0,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
  max-width: 900px;
}
.hero-badge {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: .35rem 1.2rem;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp .8s ease .4s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: .95; letter-spacing: .04em;
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .8s ease .6s forwards;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-text);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  opacity: 0; animation: fadeUp .8s ease .8s forwards;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--accent); color: var(--black);
  padding: 1rem 2.4rem;
  font-family: var(--font-body);
  font-weight: 700; font-size: .9rem;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .3s, transform .15s;
  opacity: 0; animation: fadeUp .8s ease 1s forwards;
}
.hero-cta:hover { background: var(--accent-dim); transform: translateY(-2px); }
.hero-cta svg { width: 18px; height: 18px; }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--gray-text);
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  opacity: 0; animation: fadeUp .8s ease 1.2s forwards;
}
.hero-scroll .line {
  width: 1px; height: 40px; background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{transform:scaleY(.4);opacity:.3} 50%{transform:scaleY(1);opacity:1} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

/* ── GLOBAL VIDEO BACKGROUND ── */
.video-bg-fixed {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}
.video-bg-fixed video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  object-fit: cover;
}
.video-bg-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,.55);
}
/* ── VIDEO MODE: transparent sections ── */
.hero--has-video { background: transparent; }
.hero--has-video ~ .about { background: rgba(26,26,26,.85); }
.hero--has-video ~ .services { background: rgba(10,10,10,.85); }
.hero--has-video ~ .process { background: rgba(26,26,26,.85); }
.hero--has-video ~ .contact { background: rgba(10,10,10,.85); }

.hero--has-video ~ .about .stat { background: rgba(255,140,0,.08); }
.hero--has-video ~ .services .service-card { background: rgba(26,26,26,.9); }
.hero--has-video ~ .process .step-num { background: rgba(10,10,10,.9); }
.hero--has-video ~ footer.site-footer { background: rgba(10,10,10,.9); }

/* Ensure all content sits above the fixed video */
.hero--has-video,
.hero--has-video ~ section,
.hero--has-video ~ footer.site-footer {
  position: relative;
  z-index: 1;
}

/* ── SECTIONS COMMON ── */
section.page-section { padding: 6rem 3rem; }
.section-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .8rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: .04em; line-height: 1.05;
  margin-bottom: 1.2rem;
}
.section-desc {
  color: var(--gray-text); max-width: 520px;
  font-size: .95rem; line-height: 1.7;
}

/* ── ABOUT ── */
.about { background: var(--gray-dark); }
.about-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-top: 2.5rem;
}
.stat {
  background: rgba(255,140,0,.05);
  border: 1px solid rgba(255,140,0,.12);
  padding: 1.5rem; border-radius: 6px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem; color: var(--accent); line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--gray-text); margin-top: .3rem; }

.about-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 400px;
}
.about-circle {
  width: 300px; height: 300px;
  border: 2px solid rgba(255,140,0,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.about-circle::before {
  content: ''; position: absolute; inset: -20px;
  border: 1px dashed rgba(255,140,0,.1);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }
.about-circle-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: .8rem;
}
.about-circle-text {
  font-family: var(--font-display);
  font-size: 2.5rem; color: var(--accent); opacity: .4;
  line-height: 1; text-align: center;
  letter-spacing: .15em; margin-bottom: .2rem;
}
.about-tags {
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem;
}
.floating-tag {
  padding: .4rem 1rem;
  background: rgba(10,10,10,.85);
  border: 1px solid rgba(255,140,0,.25);
  font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--white);
  border-radius: 4px; white-space: nowrap;
  transition: border-color .3s, transform .3s;
}
.floating-tag:hover { border-color: var(--accent); transform: scale(1.05); }

/* ── SERVICES ── */
.services { background: var(--black); }
.services-header { max-width: 1200px; margin: 0 auto 3rem; }
.services-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--gray-dark);
  border: 1px solid rgba(255,255,255,.05);
  padding: 2.5rem 2rem; border-radius: 6px;
  transition: border-color .3s, transform .3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transition: transform .4s;
  transform-origin: left;
}
.service-card:hover { border-color: rgba(255,140,0,.2); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px; height: 48px; margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,140,0,.08); border-radius: 10px;
  color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: .06em; margin-bottom: .8rem;
}
.service-card p { color: var(--gray-text); font-size: .88rem; line-height: 1.7; }

/* ── PROCESS ── */
.process { background: var(--gray-dark); }
.process-header { max-width: 1200px; margin: 0 auto 3rem; text-align: center; }
.process-header .section-desc { margin: 0 auto; }
.process-steps {
  max-width: 900px; margin: 0 auto;
  display: grid; gap: 0; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0;
  width: 1px; background: rgba(255,140,0,.15);
}
.step {
  display: flex; gap: 2rem; padding: 2rem 0;
  position: relative;
}
.step-num {
  flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  border: 2px solid var(--accent); border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--accent); z-index: 1;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.3rem; letter-spacing: .06em; margin-bottom: .4rem;
}
.step p { color: var(--gray-text); font-size: .88rem; }

/* ── CONTACT ── */
.contact { background: var(--black); }
.contact-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,140,0,.08); border-radius: 10px;
  color: var(--accent);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item h4 {
  font-size: .8rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gray-text); margin-bottom: .2rem;
}
.contact-item p { font-size: 1rem; }
.contact-item a { color: var(--white); text-decoration: none; transition: color .3s; }
.contact-item a:hover { color: var(--accent); }

.contact-map {
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
  height: 100%; min-height: 360px;
}
.contact-map iframe {
  width: 100%; height: 100%; border: none;
  filter: grayscale(.8) contrast(1.1);
}

.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-link {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-mid);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; color: var(--white);
  text-decoration: none; transition: background .3s, border-color .3s;
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }
.social-link svg { width: 18px; height: 18px; }

/* ── HOURS TABLE ── */
.hours-table { width: 100%; margin-top: .6rem; font-size: .9rem; border-collapse: collapse; }
.hours-table tr { display: flex; justify-content: space-between; padding: .25rem 0; }
.hours-table .day { color: var(--gray-text); }
.hours-table .time { color: var(--white); font-weight: 500; }
.hours-table .closed { color: #c0392b; }

/* ── FOOTER ── */
footer.site-footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; color: var(--gray-text);
}
footer.site-footer a { color: var(--accent); text-decoration: none; }

/* ── GLOW CURSOR ── */
.glow {
  position: fixed; width: 300px; height: 300px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,140,0,.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: left .15s ease-out, top .15s ease-out;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav.site-nav { padding: 1rem 1.5rem; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    background: var(--gray-dark); flex-direction: column;
    padding: 5rem 2rem; gap: 1.5rem;
    transition: right .3s ease; z-index: 200;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; z-index: 201; }
  section.page-section { padding: 4rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { height: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.5rem, 9vw, 5rem); }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── WP REQUIRED CLASSES ── */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--gray-text); }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); position: absolute;
  height: 1px; width: 1px; overflow: hidden;
}
