/*
Theme Name: InitClarity
Theme URI: https://initclarity.pl
Author: InitClarity
Author URI: https://initclarity.pl
Description: Profesjonalny motyw B2B z pełną kompatybilnością Elementor Free i Pro. Automatyzacje procesów, ciemna paleta, minimalistyczny design.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: initclarity
Tags: business, elementor, one-page, dark, b2b, automation
*/

/* ═══════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════════════════════════ */
:root {
    --ic-bg:            #0F1A24;
    --ic-bg-2:          #0d1829;
    --ic-bg-3:          #152233;
    --ic-bg-card:       #0d1f35;
    --ic-accent:        #3b82f6;
    --ic-accent-hover:  #2563eb;
    --ic-accent-dim:    rgba(59,130,246,.1);
    --ic-text:          #ffffff;
    --ic-text-2:        #EAE5D9;
    --ic-text-muted:    #64748B;
    --ic-border:        #1a3050;
    --ic-border-light:  rgba(197,168,128,.1);
    --ic-font:          'Roboto', 'Roboto Slab', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ic-radius:        8px;
    --ic-radius-lg:     16px;
    --ic-shadow:        0 4px 24px rgba(0,0,0,.4);
    --ic-shadow-lg:     0 12px 48px rgba(0,0,0,.6);
    --ic-container:     1200px;
    --ic-section-py:    100px;
    --ic-transition:    .25s ease;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    background-color: var(--ic-bg);
    color: var(--ic-text);
    font-family: var(--ic-font);
    font-size: 16px;
    line-height: 1.7;
}
body.landing-page-cpt { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ic-accent); text-decoration: none; transition: color var(--ic-transition); }
a:hover { color: var(--ic-accent-hover); }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ic-font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ic-text);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--ic-text-2); margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--ic-text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════════════════ */
.ic-container { max-width: var(--ic-container); margin-inline: auto; padding-inline: 24px; }
.ic-section { padding-block: var(--ic-section-py); }
.ic-section--dark  { background-color: var(--ic-bg-2); }
.ic-section--card  { background-color: var(--ic-bg-3); }
.ic-section--accent { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); }
.ic-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ic-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: start; }
.ic-text-center { text-align: center; }
.ic-text-muted   { color: var(--ic-text-muted); }
.ic-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ic-accent);
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.ic-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--ic-radius);
    font-family: var(--ic-font);
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--ic-transition), transform .15s;
    text-decoration: none;
}
.ic-btn:hover { transform: translateY(-1px); }
.ic-btn--primary { background: var(--ic-accent); color: #0F1A24; }
.ic-btn--primary:hover { background: var(--ic-accent-hover); color: #0F1A24; }
.ic-btn--outline { background: transparent; color: var(--ic-accent); border: 2px solid var(--ic-accent); }
.ic-btn--outline:hover { background: var(--ic-accent-dim); color: var(--ic-accent); }
.ic-btn--lg { padding: 18px 36px; font-size: 1.0625rem; }

/* ═══════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════ */
.ic-card {
    background: var(--ic-bg-card);
    border: 1px solid var(--ic-border-light);
    border-radius: var(--ic-radius-lg);
    padding: 36px;
    transition: border-color var(--ic-transition), box-shadow var(--ic-transition);
}
.ic-card:hover { border-color: var(--ic-accent-dim); box-shadow: var(--ic-shadow); }
.ic-card__icon {
    width: 52px;
    height: 52px;
    background: var(--ic-accent-dim);
    border-radius: var(--ic-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--ic-accent);
    font-size: 1.5rem;
}
.ic-card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: var(--ic-text); }
.ic-card__text  { color: var(--ic-text-muted); font-size: .9375rem; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0a1929;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* Logo */
.site-logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0;
    line-height: 1;
    flex-shrink: 0;
}
.site-logo img { height: 40px; width: auto; }
.site-logo__init    { color: #ffffff; }
.site-logo__clarity {
    color: #0a1929;
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* Nav */
.primary-nav { display: flex; align-items: center; }
.primary-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}
.primary-nav a {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: color .25s;
    padding: 0;
    background: none;
    border-radius: 0;
    display: inline;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: #3b82f6; background: none; }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #ffffff;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: currentColor;
    border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer { background: var(--ic-bg-2); border-top: 1px solid var(--ic-border-light); padding-top: 72px; }
.site-footer__widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    max-width: var(--ic-container);
    margin-inline: auto;
    padding-inline: 24px;
    padding-bottom: 56px;
}
.footer-widget__title { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ic-text-muted); margin-bottom: 20px; }
.footer-widget ul { list-style: none; }
.footer-widget ul li { margin-bottom: 10px; }
.footer-widget ul a { color: var(--ic-text-muted); font-size: .9rem; }
.footer-widget ul a:hover { color: var(--ic-accent); }
.footer-brand__desc { color: var(--ic-text-muted); font-size: .9rem; line-height: 1.65; margin-top: 12px; max-width: 320px; }
.site-footer__bottom {
    border-top: 1px solid var(--ic-border-light);
    padding-block: 24px;
    max-width: var(--ic-container);
    margin-inline: auto;
    padding-inline: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8125rem;
    color: var(--ic-text-muted);
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: var(--ic-text-muted); font-size: .8125rem; }
.footer-nav a:hover { color: var(--ic-accent); }

/* ═══════════════════════════════════════════════════════════
   SECTION HEADINGS
═══════════════════════════════════════════════════════════ */
.ic-section-header { margin-bottom: 60px; }
.ic-section-header--center { text-align: center; }
.ic-section-header h2 { margin-bottom: 20px; }
.ic-section-header p { font-size: 1.125rem; color: var(--ic-text-muted); max-width: 680px; }
.ic-section-header--center p { margin-inline: auto; }

/* ═══════════════════════════════════════════════════════════
   BLOG ARCHIVE
═══════════════════════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card {
    background: var(--ic-bg-card);
    border: 1px solid var(--ic-border-light);
    border-radius: var(--ic-radius-lg);
    overflow: hidden;
    transition: transform var(--ic-transition), border-color var(--ic-transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(20,184,166,.3); }
.post-card__thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.post-card__cat {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ic-accent);
    background: var(--ic-accent-dim);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.post-card__title { font-size: 1.1rem; font-weight: 700; color: var(--ic-text); margin-bottom: 10px; line-height: 1.4; }
.post-card__excerpt { color: var(--ic-text-muted); font-size: .875rem; flex: 1; }
.post-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--ic-border-light);
    font-size: .8rem;
    color: var(--ic-text-muted);
}
.post-card__read-more { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--ic-accent); margin-top: 18px; }
.post-card__read-more:hover { color: var(--ic-accent-hover); }

/* ═══════════════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════════════ */
.single-post__wrap { max-width: 780px; margin-inline: auto; padding-inline: 24px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: .8125rem; color: var(--ic-text-muted); margin-bottom: 32px; }
.breadcrumbs a { color: var(--ic-text-muted); }
.breadcrumbs a:hover { color: var(--ic-accent); }
.post-meta { display: flex; gap: 20px; align-items: center; margin-block: 20px 32px; font-size: .875rem; color: var(--ic-text-muted); flex-wrap: wrap; }
.post-content { color: var(--ic-text-2); font-size: 1.0625rem; line-height: 1.8; }
.post-content h2 { margin-block: 2em .75em; }
.post-content h3 { margin-block: 1.75em .6em; }
.post-content p  { margin-bottom: 1.35em; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.35em; }
.post-content li { margin-bottom: .5em; }
.post-content blockquote {
    border-left: 3px solid var(--ic-accent);
    padding: 20px 28px;
    background: var(--ic-bg-2);
    border-radius: 0 var(--ic-radius) var(--ic-radius) 0;
    margin-block: 2em;
    color: var(--ic-text);
    font-size: 1.1rem;
    font-style: italic;
}
.post-callout {
    background: var(--ic-bg-3);
    border-left: 4px solid var(--ic-accent);
    border-radius: 0 var(--ic-radius) var(--ic-radius) 0;
    padding: 24px 28px;
    margin-block: 2em;
    color: var(--ic-text-2);
}
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.post-tag { font-size: .75rem; font-weight: 600; color: var(--ic-text-muted); background: var(--ic-bg-2); border: 1px solid var(--ic-border); padding: 5px 12px; border-radius: 20px; }
.post-tag:hover { border-color: var(--ic-accent); color: var(--ic-accent); }
.author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--ic-bg-2);
    border: 1px solid var(--ic-border-light);
    border-radius: var(--ic-radius-lg);
    padding: 32px;
    margin-block: 48px;
}
.author-box__avatar { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; background: var(--ic-accent-dim); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--ic-accent); }
.author-box__name { font-weight: 700; font-size: 1.0625rem; margin-bottom: 4px; }
.author-box__role { color: var(--ic-text-muted); font-size: .875rem; margin-bottom: 12px; }
.cta-box {
    background: var(--ic-bg-2);
    border: 1px solid var(--ic-border-light);
    border-radius: var(--ic-radius-lg);
    padding: 48px;
    text-align: center;
    margin-block: 60px;
}
.cta-box h3 { margin-bottom: 16px; }
.cta-box p  { color: var(--ic-text-muted); margin-bottom: 28px; }

/* ═══════════════════════════════════════════════════════════
   CASE STUDY
═══════════════════════════════════════════════════════════ */
.cs-hero { padding: 100px 0 60px; background: linear-gradient(180deg, var(--ic-bg-2) 0%, var(--ic-bg) 100%); }
.cs-meta { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 28px; }
.cs-meta__label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ic-text-muted); margin-bottom: 4px; }
.cs-meta__value { font-size: 1rem; font-weight: 600; color: var(--ic-text); }
.cs-result-big { text-align: center; font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; color: var(--ic-accent); line-height: 1; display: block; }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 60px; }
.pagination a,
.pagination .current { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--ic-radius); font-size: .875rem; font-weight: 600; border: 1px solid var(--ic-border); color: var(--ic-text-muted); transition: all var(--ic-transition); }
.pagination a:hover { border-color: var(--ic-accent); color: var(--ic-accent); }
.pagination .current { background: var(--ic-accent); border-color: var(--ic-accent); color: #0d1117; }

/* ═══════════════════════════════════════════════════════════
   404
═══════════════════════════════════════════════════════════ */
.page-404 { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.page-404 .num { font-size: clamp(6rem, 20vw, 12rem); font-weight: 900; color: var(--ic-accent); line-height: 1; opacity: .3; }
.page-404 h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-top: -20px; }

/* ═══════════════════════════════════════════════════════════
   ELEMENTOR OVERRIDES
═══════════════════════════════════════════════════════════ */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--ic-container); }
.e-con.e-full-width, .elementor-section.elementor-section-full_width { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .ic-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .site-footer__widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --ic-section-py: 64px; }
    .blog-grid, .ic-grid-3, .ic-grid-2 { grid-template-columns: 1fr; gap: 24px; }
    .site-footer__widgets { grid-template-columns: 1fr; gap: 32px; }
    .nav-toggle { display: flex; }
    .primary-nav ul {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #0a1929;
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 1rem;
        z-index: 999;
    }
    .primary-nav ul.is-open { display: flex; }
    .primary-nav ul li { width: 100%; }
    .primary-nav ul a { display: block; padding: 4px 0; font-size: 1rem; }
    .site-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
    .author-box { flex-direction: column; }
    .cta-box { padding: 32px 24px; }
}
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
}
