/*
Theme Name: Zaraz Będę - Pomoc Drogowa
Description: Nowoczesny motyw premium dla pomocy drogowej w Trójmieście.
Author: Twój Zespół
Version: 1.0
Text Domain: zaraz-bede
*/

/* =========================================
   ZMIENNE SYSTEMOWE
========================================= */
:root {
    --base-bg: #050505;
    --surface-bg: rgba(20, 20, 22, 0.4);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-main: #FFB800;
    --accent-glow: rgba(255, 184, 0, 0.25);

    --radius-lg: 24px;
    --radius-md: 16px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.6s var(--ease-out-expo);
    --transition-fast: all 0.3s ease-out;
}

/* =========================================
   RESET I BAZA
========================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--base-bg);
    color: var(--text-primary);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar { display: none; }

body {
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* =========================================
   TYPOGRAFIA
========================================= */
h1, h2, h3, .font-display { font-family: 'Outfit', sans-serif; }

h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px; }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; }
h3 { font-size: 1.6rem; font-weight: 700; margin: 0; line-height: 1.3; }
p { font-size: 1.125rem; color: var(--text-secondary); font-weight: 500; margin: 0; }

.text-accent { color: var(--accent-main); }
.text-muted { color: rgba(255, 255, 255, 0.6); }

/* =========================================
   GLOBALNE ELEMENTY INTERFEJSU
========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; }

#progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; background: var(--accent-main);
    width: 0%; z-index: 9999; box-shadow: 0 0 15px var(--accent-glow); transition: width 0.1s linear;
}

.noise-overlay {
    position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9998;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04; mix-blend-mode: overlay;
}

/* =========================================
   PRZYCISKI (MAGNETIC)
========================================= */
.magnetic-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; z-index: 1; text-decoration: none; border-radius: 100px;
    cursor: pointer; will-change: transform;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.magnetic-btn::before {
    content: ''; position: absolute; inset: 0; background: var(--accent-main);
    transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease-out-expo); z-index: -1;
}

.magnetic-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.magnetic-btn:hover { color: #000; border-color: var(--accent-main); box-shadow: 0 10px 30px rgba(255, 184, 0, 0.2); }

.phone-pill {
    gap: 10px; padding: 10px 24px; font-weight: 700; font-size: 1.1rem; color: #fff;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--surface-border); backdrop-filter: blur(10px);
}

.btn-large {
    gap: 12px; padding: 20px 48px; font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-main);
    background: transparent; border: 2px solid var(--accent-main);
}
.btn-large svg { transition: transform 0.6s var(--ease-out-expo); }
.btn-large:hover svg { transform: translateX(6px); }

/* =========================================
   NAGŁÓWEK (HEADER)
========================================= */
#site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0;
    border-bottom: 1px solid transparent; transition: background-color var(--transition-fast), padding var(--transition-fast), border-color var(--transition-fast);
}

#site-header.scrolled {
    background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--surface-border); padding: 12px 0;
}

.nav-inner { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 900; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--accent-main); }

/* =========================================
   SEKCJA HERO
========================================= */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; position: relative; overflow: hidden; }

.hero-image-wrapper { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-image-wrapper img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: contrast(1.1); transform: scale(1.05); }

.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.6) 70%, var(--base-bg) 100%);
}

.hero-content { position: relative; z-index: 10; max-width: 800px; perspective: 1000px; }
.hero p { max-width: 600px; font-size: 1.25rem; margin-bottom: 50px; }

.hero-tags { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.tag {
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--surface-border); padding: 8px 20px;
    border-radius: 100px; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
    color: #fff; display: flex; align-items: center; gap: 8px; backdrop-filter: blur(10px);
}

.tag-dot { width: 8px; height: 8px; background: var(--accent-main); border-radius: 50%; box-shadow: 0 0 10px var(--accent-main); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* =========================================
   PASEK MARQUEE
========================================= */
.marquee-wrapper {
    position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    background: var(--accent-main); color: #000; padding: 24px 0; transform: rotate(-1.5deg); z-index: 20;
    margin-top: 20px; margin-bottom: 80px; overflow: hidden; display: flex;
}
.marquee-track { display: flex; width: max-content; animation: scrollMarquee 30s linear infinite; }
.marquee-content { display: flex; align-items: center; }
.marquee-content span { padding: 0 40px; font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.marquee-content span.dot { padding: 0; opacity: 0.5; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   KARTY GLOW & BENTO GRID
========================================= */
.glow-card {
    background: var(--surface-bg); border-radius: var(--radius-lg); position: relative; backdrop-filter: blur(16px);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, border-color 0.4s ease; border: 1px solid rgba(255, 255, 255, 0.05); transform-style: preserve-3d;
}

.glow-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 184, 0, 0.08), transparent 40%);
    opacity: 0; transition: opacity var(--transition-fast); z-index: 0; pointer-events: none;
}

.glow-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), var(--accent-main), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity var(--transition-fast); z-index: 1; pointer-events: none;
}

.glow-card:hover { box-shadow: 0 30px 60px rgba(0,0,0,0.6); z-index: 10; border-color: transparent; }
.glow-card:hover::before, .glow-card:hover::after { opacity: 1; }
.glow-card > * { position: relative; z-index: 2; pointer-events: none; transform: translateZ(10px); }
.glow-card a, .glow-card button { pointer-events: auto; }

.glow-card .icon-box, .glow-card .service-icon-wrapper { transition: transform 0.6s var(--ease-out-expo), background-color 0.4s, color 0.4s, box-shadow 0.4s; }
.glow-card:hover .icon-box, .glow-card:hover .service-icon-wrapper { transform: scale(1.15) translateY(-8px); background: var(--accent-main); color: #000; box-shadow: 0 15px 30px rgba(255, 184, 0, 0.3); }

.glow-card h3, .glow-card p { transition: transform 0.6s var(--ease-out-expo), color 0.4s; }
.glow-card:hover h3 { transform: translateX(8px); color: var(--accent-main); }
.glow-card:hover p { transform: translateX(8px); color: #fff; }

.glow-card .highlight-number { display: inline-block; transition: transform 0.8s var(--ease-out-expo), text-shadow 0.4s; }
.glow-card:hover .highlight-number { transform: scale(1.05) translateZ(30px); text-shadow: 0 10px 50px rgba(255, 184, 0, 0.6); }

/* Grid System dla Bento */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: 40px; }
.bento-card { padding: 40px; display: flex; flex-direction: column; justify-content: flex-start; }
.card-highlight { grid-column: span 12; background: linear-gradient(135deg, rgba(20, 20, 22, 0.8) 0%, rgba(30, 25, 10, 0.6) 100%); }
.card-normal { grid-column: span 4; }
.card-wide { grid-column: span 8; }

.card-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.icon-box { width: 64px; height: 64px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--surface-border); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--accent-main); flex-shrink: 0; }

.highlight-content { display: flex; align-items: center; gap: 40px; pointer-events: auto; }
.highlight-text-block { display: flex; flex-direction: column; justify-content: center; }
.highlight-number { font-family: 'Outfit'; font-size: clamp(4rem, 8vw, 8rem); font-weight: 900; line-height: 1; color: var(--accent-main); flex-shrink: 0; margin: 0; }
.highlight-number span { font-size: 0.5em; }

/* =========================================
   SIATKA USŁUG
========================================= */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.service-card { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.service-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.service-icon-wrapper { width: 56px; height: 56px; background: rgba(255, 184, 0, 0.05); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--accent-main); margin-bottom: 8px; }

/* =========================================
   SEKCJA SEO I OBSZAR DZIAŁANIA
========================================= */
.seo-section { padding-top: 40px; padding-bottom: 120px; }
.card-seo { padding: 60px; text-align: center; justify-content: center; }
.card-seo p { max-width: 800px; margin: 0 auto; color: #fff; }

/* =========================================
   REVIEWS - OPINIE
========================================= */

.ti-load-more-reviews-button {
  margin-bottom: 16px;
}

/* =========================================
   STOPKA
========================================= */
.site-footer { border-top: 1px solid var(--surface-border); padding: 80px 0 40px; text-align: center; background: #000; position: relative; overflow: hidden; }
.footer-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 40px; }
.footer-address { font-style: normal; color: var(--text-secondary); font-size: 1rem; line-height: 1.8; margin-top: 50px; display: block; }
.footer-bg-text { font-family: 'Outfit'; font-size: 12vw; font-weight: 900; color: rgba(255,255,255,0.02); line-height: 0.8; margin-top: -20px; user-select: none; pointer-events: none; }

/* =========================================
   ANIMACJE POJAWIANIA
========================================= */
.reveal { opacity: 0; transform: translateY(40px) scale(0.95); will-change: transform, opacity; transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   RWD - RESPONSYWNOŚĆ
========================================= */
@media (max-width: 1024px) {
    .card-normal, .card-wide { grid-column: span 6; }
    .highlight-content { flex-direction: column; text-align: center; gap: 24px; }
    .highlight-text-block { align-items: center; text-align: center; }
    .card-header { justify-content: center; }
    .bento-card { text-align: center; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero { padding-top: 100px; text-align: center; }
    .hero-tags { justify-content: center; }
    .hero p { margin-bottom: 30px; }
    .bento-grid { display: flex; flex-direction: column; gap: 16px; }
    .card-header { flex-direction: column; text-align: center; gap: 16px; }
    .service-card, .card-seo { padding: 30px; text-align: center; align-items: center; }
    .glow-card { transform: none !important; transition: transform 0.3s; }
    .glow-card:hover { transform: translateY(-4px) !important; }
    .glow-card:hover h3, .glow-card:hover p { transform: translateX(0); }
    .magnetic-btn:hover { transform: none !important; }
}
