/*
Theme Name: DeweloperCeny
Theme URI: https://deweloperceny.pl
Author: CodeScriptum
Author URI: https://codescriptum.pl
Description: Motyw WordPress + WooCommerce dla DeweloperCeny.pl – wtyczka zgodności z ustawą deweloperską. Jasne karty cennikowe, ciemna nawigacja, animacje.
Version: 1.3.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: deweloperceny
License: Proprietary
*/

:root {
    --bg: #f0f4f8;
    --white: #ffffff;
    --navy: #0f172a;
    --dark: #0a0f1e;
    --text: #1e293b;
    --text2: #475569;
    --muted: #94a3b8;
    --dim: #cbd5e1;
    --border: #e2e8f0;
    --border-lt: #f1f5f9;
    --green: #10b981;
    --green-dk: #059669;
    --green-lt: #d1fae5;
    --green-bg: #ecfdf5;
    --red: #ef4444;
    --amber: #f59e0b;
    --shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 20px rgba(0,0,0,.03);
    --shadow-h: 0 12px 40px rgba(0,0,0,.08);
    --shadow-pop: 0 8px 40px rgba(16,185,129,.15);
    --shadow-btn: 0 4px 14px rgba(16,185,129,.3);
    --r: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: var(--font);
    font-size: 16px; line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--green-dk); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }

.dc-ctn { max-width: 1250px; margin: 0 auto; padding: 0 24px; }

/* ═════════════════════════════
   SCROLL ANIMATIONS
   ═════════════════════════════ */
.dc-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.dc-anim.dc-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children */
.dc-anim-delay-1 { transition-delay: .1s; }
.dc-anim-delay-2 { transition-delay: .2s; }
.dc-anim-delay-3 { transition-delay: .3s; }
.dc-anim-delay-4 { transition-delay: .4s; }

/* Card hover micro-interactions */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 40px rgba(16,185,129,.12); }
    50% { box-shadow: 0 8px 50px rgba(16,185,129,.22); }
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1.03); }
    50% { transform: translateY(-6px) scale(1.03); }
}
@keyframes badge-shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ═════════════════════════════
   HEADER (dark – matches LP)
   ═════════════════════════════ */
.dc-hdr {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10,15,30,.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .3s;
}
.dc-hdr.scrolled { background: rgba(5,10,20,.97); }

.dc-hdr-in {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.dc-logo { font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.dc-logo:hover { color: var(--green); }
.dc-logo img { height: 36px; width: auto; }
.dc-logo-g { color: var(--green); }

.dc-nav { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.dc-nav li { margin: 0; }
.dc-nav a { color: #94a3b8; font-size: 14px; font-weight: 500; transition: color .2s; position: relative; }
.dc-nav a:hover { color: #fff; }
.dc-nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--green); border-radius: 1px; transition: width .3s;
}
.dc-nav a:hover::after { width: 100%; }

.dc-nav-cta {
    background: linear-gradient(135deg,#10b981,#059669) !important;
    color: #fff !important; padding: 10px 24px !important;
    border-radius: 10px !important; font-weight: 600 !important;
    box-shadow: var(--shadow-btn); transition: all .25s !important;
}
.dc-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(16,185,129,.4); }
.dc-nav-cta::after { display: none !important; }

.dc-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 8px; }
@media(max-width:768px) {
    .dc-menu-btn { display: block; }
    .dc-nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: rgba(10,15,30,.98); flex-direction: column; padding: 20px 24px; gap: 16px;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .dc-nav.open { display: flex; }
}

/* ═════════════════════════════
   FOOTER (dark – matches LP)
   ═════════════════════════════ */
.dc-ftr {
    background: #050a14;
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 60px 0 30px; color: #94a3b8; font-size: 14px;
}
.dc-ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.dc-ftr h4 { color: #fff; font-size: 14px; font-weight: 600; margin: 0 0 16px; }
.dc-ftr a { color: #94a3b8; display: block; margin-bottom: 8px; transition: color .2s; }
.dc-ftr a:hover { color: var(--green); }
.dc-ftr-btm { border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px; text-align: center; font-size: 13px; color: #64748b; }
@media(max-width:768px) { .dc-ftr-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ═════════════════════════════
   PRICING SECTION
   ═════════════════════════════ */
.dc-pricing { padding: 60px 0 80px; }

.dc-pricing-hdr { text-align: center; margin-bottom: 52px; }
.dc-pricing-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--green-bg); color: var(--green-dk);
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
    padding: 8px 18px; border-radius: 50px; margin-bottom: 20px;
    border: 1px solid rgba(16,185,129,.2);
}
.dc-pricing-hdr h1 {
    font-size: 42px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px;
}
.dc-pricing-hdr h1 em {
    font-style: italic; color: var(--green);
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dc-pricing-hdr p { color: var(--text2); font-size: 18px; max-width: 620px; margin: 0 auto; line-height: 1.6; }

/* Grid */
.dc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}
@media(max-width:1100px) { .dc-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px) { .dc-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ─── Card ─── */
.dc-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--r-xl);
    padding: 36px 28px 32px;
    position: relative;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    display: flex; flex-direction: column;
}
.dc-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-h);
    transform: translateY(-6px);
}

/* Popular */
.dc-card.pop {
    border-color: var(--green);
    box-shadow: var(--shadow-pop);
    transform: scale(1.03);
    z-index: 2;
    animation: pulse-glow 4s ease-in-out infinite;
}
.dc-card.pop:hover {
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 16px 60px rgba(16,185,129,.2);
}

.dc-pop-tag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
    padding: 7px 22px; border-radius: 8px; white-space: nowrap;
    background-size: 200% auto;
    animation: badge-shine 3s linear infinite;
    background-image: linear-gradient(90deg, #10b981 0%, #34d399 25%, #10b981 50%, #059669 75%, #10b981 100%);
}

/* Name & subtitle */
.dc-card h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.dc-card__sub { font-size: 14px; color: var(--muted); margin: 0 0 22px; line-height: 1.4; }

/* Price */
.dc-price { margin: 0 0 26px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.dc-price__cur { font-size: 15px; font-weight: 600; color: var(--navy); align-self: flex-start; margin-top: 12px; }
.dc-price__amt {
    font-size: 56px; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -2px;
    font-feature-settings: 'tnum' 1;
}
.dc-price__per { font-size: 15px; color: var(--muted); margin-left: 2px; }
.dc-price__ext { font-size: 13px; color: var(--muted); display: block; width: 100%; margin-top: 2px; }

/* Features */
.dc-feats { list-style: none; padding: 0; margin: 0 0 28px; flex-grow: 1; }
.dc-feats li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; font-size: 14px; line-height: 1.45;
    transition: opacity .3s;
}
.dc-feats li .ic {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; margin-top: 1px;
    transition: transform .2s;
}
.dc-card:hover .dc-feats li .ic { transform: scale(1.1); }

.dc-feats li.on { color: var(--text2); }
.dc-feats li.on .ic { background: var(--green-lt); color: var(--green-dk); }
.dc-feats li.off { color: var(--dim); }
.dc-feats li.off .ic { background: var(--border-lt); color: var(--dim); }

/* CTA button */
.dc-card__btn {
    display: block; width: 100%; padding: 15px; text-align: center;
    border-radius: var(--r); font-size: 15px; font-weight: 600;
    font-family: var(--font); cursor: pointer; transition: all .25s;
    text-decoration: none; border: none; position: relative; overflow: hidden;
}
.dc-card__btn.green {
    background: linear-gradient(135deg,#10b981,#059669); color: #fff;
    box-shadow: var(--shadow-btn);
}
.dc-card__btn.green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16,185,129,.4);
    color: #fff;
}
.dc-card__btn.outline {
    background: var(--white); color: var(--navy); border: 2px solid var(--border);
}
.dc-card__btn.outline:hover {
    border-color: var(--green); color: var(--green-dk);
    box-shadow: 0 4px 16px rgba(16,185,129,.1);
}

/* Button shimmer */
.dc-card__btn.green::after {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .5s;
}
.dc-card__btn.green:hover::after { left: 100%; }

/* ─── Trust bar ─── */
.dc-trust {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; margin: 70px 0 0; padding: 40px 0;
    border-top: 1px solid var(--border);
}
.dc-trust > div {
    text-align: center; padding: 20px 12px;
    border-radius: var(--r-lg); transition: all .3s;
}
.dc-trust > div:hover {
    background: var(--white); box-shadow: var(--shadow);
    transform: translateY(-4px);
}
.dc-trust__ico {
    font-size: 32px; margin-bottom: 10px;
    display: inline-block; transition: transform .3s;
}
.dc-trust > div:hover .dc-trust__ico { transform: scale(1.2); }
.dc-trust__t { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.dc-trust__d { font-size: 13px; color: var(--muted); }

@media(max-width:600px) { .dc-trust { grid-template-columns: repeat(2,1fr); } }

/* ═════════════════════════════
   GUARANTEE BANNER
   ═════════════════════════════ */
.dc-guarantee {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px 40px;
    margin: 50px 0 0;
    display: flex; align-items: center; gap: 24px;
    transition: box-shadow .3s;
}
.dc-guarantee:hover { box-shadow: var(--shadow-h); }
.dc-guarantee__ico { font-size: 48px; flex-shrink: 0; }
.dc-guarantee h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.dc-guarantee p { font-size: 14px; color: var(--text2); margin: 0; line-height: 1.5; }
@media(max-width:600px) {
    .dc-guarantee { flex-direction: column; text-align: center; padding: 28px 24px; }
}

/* ═════════════════════════════
   PAGE CONTENT
   ═════════════════════════════ */
.dc-page { padding: 40px 0 80px; min-height: 60vh; }

/* ═════════════════════════════
   FORMS
   ═════════════════════════════ */
input[type="text"],input[type="email"],input[type="password"],input[type="number"],
input[type="tel"],input[type="url"],input[type="search"],textarea,select {
    background: var(--white); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); padding: 12px 16px; font-size: 15px; font-family: var(--font);
    width: 100%; transition: border-color .2s, box-shadow .2s; outline: none;
}
input:focus,textarea:focus,select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.1); }
label { display: block; font-size: 14px; font-weight: 500; color: var(--text2); margin-bottom: 6px; }
::placeholder { color: var(--dim); }
