/*
Theme Name: Rewikam
Theme URI: https://rewikam.pl
Author: Rewikam
Description: Dedykowany motyw WordPress dla Kancelarii Biegłego Rewidenta Rewikam. Elegancki, profesjonalny design z granatową paletą, zoptymalizowany pod kątem prezentacji usług audytorskich.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: rewikam
*/

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #185FA5;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #042C53;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== DESIGN TOKENS ===== */
:root {
    --rw-navy-darkest: #042C53;
    --rw-navy-dark: #0C447C;
    --rw-navy: #185FA5;
    --rw-blue-mid: #378ADD;
    --rw-blue-light: #85B7EB;
    --rw-blue-lighter: #B5D4F4;
    --rw-blue-lightest: #E6F1FB;
    --rw-text: #1a1a1a;
    --rw-text-muted: #666;
    --rw-text-soft: #999;
    --rw-border: rgba(0, 0, 0, 0.08);
    --rw-border-strong: rgba(0, 0, 0, 0.15);
    --rw-bg-soft: #f8f9fa;
    --rw-white: #ffffff;
    --rw-radius-sm: 6px;
    --rw-radius-md: 8px;
    --rw-radius-lg: 12px;
    --rw-container: 1200px;
    --rw-transition: 0.25s ease;
}

/* ===== CONTAINER ===== */
.rw-container {
    width: 100%;
    max-width: var(--rw-container);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .rw-container {
        padding: 0 1.25rem;
    }
}

/* ===== NAVIGATION ===== */
.rw-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--rw-white);
    border-bottom: 0.5px solid var(--rw-border);
    backdrop-filter: saturate(180%) blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.rw-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.rw-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.rw-logo-mark {
    width: 38px;
    height: 38px;
    background: var(--rw-navy-darkest);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rw-logo-mark svg {
    width: 20px;
    height: 20px;
    fill: var(--rw-blue-lighter);
}

.rw-logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.rw-logo-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--rw-text);
    letter-spacing: 0.08em;
}

.rw-logo-sub {
    font-size: 10px;
    color: var(--rw-text-muted);
    letter-spacing: 0.04em;
    margin-top: 3px;
    font-weight: 400;
}

.rw-nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.rw-nav-menu a {
    font-size: 14px;
    color: var(--rw-text-muted);
    font-weight: 500;
    transition: color var(--rw-transition);
}

.rw-nav-menu a:hover,
.rw-nav-menu .current-menu-item a,
.rw-nav-menu .current_page_item a {
    color: var(--rw-navy-darkest);
}

.rw-nav-cta {
    background: var(--rw-navy-darkest);
    color: var(--rw-blue-lighter);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: var(--rw-radius-md);
    transition: background var(--rw-transition), transform var(--rw-transition);
    display: inline-block;
}

.rw-nav-cta:hover {
    background: var(--rw-navy);
    color: var(--rw-blue-lightest);
    transform: translateY(-1px);
}

.rw-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
}

.rw-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--rw-text);
    transition: transform var(--rw-transition);
}

@media (max-width: 900px) {
    .rw-nav-toggle {
        display: flex;
    }
    .rw-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--rw-white);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 0.5px solid var(--rw-border);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--rw-transition), transform var(--rw-transition);
    }
    .rw-nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .rw-nav-menu a {
        font-size: 15px;
    }
}

/* ===== HERO ===== */
.rw-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 480px;
    border-bottom: 0.5px solid var(--rw-border);
}

.rw-hero-left {
    background: var(--rw-navy-darkest);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.rw-hero-left::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(24, 95, 165, 0.15), transparent 60%);
    pointer-events: none;
}

.rw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rw-navy-dark);
    color: var(--rw-blue-light);
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 30px;
    width: fit-content;
    margin-bottom: 1.75rem;
    letter-spacing: 0.02em;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.rw-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rw-blue-light);
    display: inline-block;
    box-shadow: 0 0 8px var(--rw-blue-light);
}

.rw-hero-left h1 {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    color: var(--rw-blue-lightest);
    line-height: 1.25;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.rw-hero-left p {
    font-size: 15px;
    color: var(--rw-blue-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.rw-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.rw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--rw-radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--rw-transition);
    cursor: pointer;
    text-decoration: none;
}

.rw-btn-primary {
    background: var(--rw-blue-lightest);
    color: var(--rw-navy-darkest);
}

.rw-btn-primary:hover {
    background: var(--rw-white);
    color: var(--rw-navy-darkest);
    transform: translateY(-2px);
}

.rw-btn-outline {
    background: transparent;
    color: var(--rw-blue-light);
    border: 0.5px solid var(--rw-navy);
}

.rw-btn-outline:hover {
    background: var(--rw-navy-dark);
    color: var(--rw-blue-lightest);
    border-color: var(--rw-blue-mid);
}

.rw-btn-dark {
    background: var(--rw-navy-darkest);
    color: var(--rw-blue-lightest);
}

.rw-btn-dark:hover {
    background: var(--rw-navy);
    color: var(--rw-white);
    transform: translateY(-2px);
}

.rw-hero-right {
    background: var(--rw-blue-lightest);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.rw-hero-stat {
    background: var(--rw-white);
    border-radius: var(--rw-radius-md);
    padding: 1.25rem 1.5rem;
    border: 0.5px solid var(--rw-border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform var(--rw-transition), box-shadow var(--rw-transition);
}

.rw-hero-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 44, 83, 0.08);
}

.rw-stat-num {
    font-size: 28px;
    font-weight: 600;
    color: var(--rw-navy-darkest);
    min-width: 64px;
    letter-spacing: -0.02em;
}

.rw-stat-label {
    font-size: 13px;
    color: var(--rw-text-muted);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .rw-hero {
        grid-template-columns: 1fr;
    }
    .rw-hero-left,
    .rw-hero-right {
        padding: 2.5rem 1.5rem;
    }
}

/* ===== USŁUGI STRIP ===== */
.rw-strip {
    background: var(--rw-navy);
    padding: 1rem 0;
    overflow: hidden;
}

.rw-strip-inner {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.rw-strip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rw-blue-lighter);
    font-weight: 500;
}

.rw-strip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rw-blue-lighter);
    flex-shrink: 0;
}

/* ===== SECTION BASE ===== */
.rw-section {
    padding: 4.5rem 0;
}

.rw-section-header {
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.rw-section-label {
    font-size: 12px;
    color: var(--rw-navy);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: block;
}

.rw-section-title {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 500;
    color: var(--rw-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.rw-section-lead {
    font-size: 15px;
    color: var(--rw-text-muted);
    line-height: 1.7;
    margin-top: 0.75rem;
    max-width: 620px;
}

/* ===== SERVICES ===== */
.rw-services {
    background: var(--rw-white);
}

.rw-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.rw-svc {
    background: var(--rw-white);
    border: 0.5px solid var(--rw-border);
    border-radius: var(--rw-radius-lg);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--rw-transition), border-color var(--rw-transition), box-shadow var(--rw-transition);
}

.rw-svc::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rw-navy);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform var(--rw-transition);
}

.rw-svc:hover {
    transform: translateY(-3px);
    border-color: var(--rw-border-strong);
    box-shadow: 0 12px 30px rgba(4, 44, 83, 0.06);
}

.rw-svc:hover::before {
    transform: scaleX(1);
}

.rw-svc-num {
    font-size: 11px;
    color: var(--rw-text-soft);
    margin-bottom: 0.9rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rw-svc h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--rw-text);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.rw-svc p {
    font-size: 13px;
    color: var(--rw-text-muted);
    line-height: 1.6;
}

/* ===== ABOUT BIEGŁY REWIDENT ===== */
.rw-auditor {
    background: var(--rw-bg-soft);
    padding: 4.5rem 0;
    border-top: 0.5px solid var(--rw-border);
    border-bottom: 0.5px solid var(--rw-border);
}

.rw-auditor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.rw-auditor-card {
    background: var(--rw-white);
    border-radius: var(--rw-radius-lg);
    border: 0.5px solid var(--rw-border);
    padding: 2rem;
}

.rw-auditor-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--rw-text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.rw-auditor-role {
    font-size: 14px;
    color: var(--rw-navy);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.rw-auditor-details {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    border-top: 0.5px solid var(--rw-border);
    padding-top: 1.25rem;
}

.rw-auditor-details li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 0.5px solid var(--rw-border);
}

.rw-auditor-details li:last-child {
    border-bottom: none;
}

.rw-auditor-details .rw-label {
    color: var(--rw-text-muted);
    flex-shrink: 0;
}

.rw-auditor-details .rw-value {
    color: var(--rw-text);
    font-weight: 500;
    text-align: right;
}

.rw-auditor-details .rw-value.rw-yes {
    color: var(--rw-navy);
}

.rw-auditor-description p {
    font-size: 15px;
    color: var(--rw-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.rw-auditor-description p:last-child {
    margin-bottom: 0;
}

.rw-auditor-highlight {
    background: var(--rw-blue-lightest);
    border-left: 3px solid var(--rw-navy);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--rw-radius-md) var(--rw-radius-md) 0;
    margin-top: 1.5rem;
    font-size: 14px;
    color: var(--rw-navy-darkest);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .rw-auditor-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* ===== CLIENTS ===== */
.rw-clients {
    padding: 4.5rem 0;
}

.rw-client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rw-tag {
    font-size: 13px;
    color: var(--rw-navy-dark);
    background: var(--rw-blue-lightest);
    border-radius: 30px;
    padding: 8px 16px;
    font-weight: 500;
    transition: background var(--rw-transition), transform var(--rw-transition);
}

.rw-tag:hover {
    background: var(--rw-blue-lighter);
    transform: translateY(-1px);
}

/* ===== CONTACT ===== */
.rw-contact {
    background: var(--rw-navy-darkest);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.rw-contact::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at right, rgba(24, 95, 165, 0.2), transparent 70%);
    pointer-events: none;
}

.rw-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.rw-contact-label {
    font-size: 12px;
    color: var(--rw-blue-mid);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.rw-contact-heading {
    font-size: 26px;
    font-weight: 500;
    color: var(--rw-blue-lightest);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.rw-contact-rows {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rw-contact-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rw-contact-row span {
    font-size: 12px;
    color: var(--rw-blue-mid);
    letter-spacing: 0.02em;
}

.rw-contact-row strong,
.rw-contact-row a {
    font-size: 15px;
    color: var(--rw-blue-lightest);
    font-weight: 400;
    text-decoration: none;
}

.rw-contact-row a:hover {
    color: var(--rw-white);
    text-decoration: underline;
}

.rw-contact-cta {
    background: var(--rw-navy-dark);
    border-radius: var(--rw-radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.rw-contact-cta-title {
    font-size: 18px;
    color: var(--rw-blue-lightest);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.rw-contact-cta p {
    font-size: 14px;
    color: var(--rw-blue-light);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .rw-contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== FOOTER ===== */
.rw-footer {
    background: var(--rw-white);
    padding: 1.25rem 0;
    border-top: 0.5px solid var(--rw-border);
}

.rw-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.rw-footer span,
.rw-footer a {
    font-size: 12px;
    color: var(--rw-text-soft);
}

.rw-footer a:hover {
    color: var(--rw-navy);
}

/* ===== SINGLE PAGE / CONTENT ===== */
.rw-page-header {
    background: var(--rw-navy-darkest);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.rw-page-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(24, 95, 165, 0.15), transparent 60%);
    pointer-events: none;
}

.rw-page-header-label {
    font-size: 12px;
    color: var(--rw-blue-mid);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.rw-page-title {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    color: var(--rw-blue-lightest);
    letter-spacing: -0.01em;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

.rw-page-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.rw-page-content h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--rw-text);
    margin: 2rem 0 1rem;
    letter-spacing: -0.01em;
}

.rw-page-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--rw-text);
    margin: 1.5rem 0 0.75rem;
}

.rw-page-content p {
    font-size: 16px;
    color: var(--rw-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.rw-page-content ul,
.rw-page-content ol {
    margin: 1rem 0 1rem 1.5rem;
}

.rw-page-content li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: var(--rw-text);
}

.rw-page-content a {
    color: var(--rw-navy);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== UTILITIES ===== */
.rw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
