/*
Theme Name: Starter Tool Theme
Theme URI: https://example.com
Author: Dev
Description: Minimalistyczny theme-baza do szybkiego stawiania stron-narzędzi. Page template z hero, testimonialami, statystykami.
Version: 2.0.0
Requires at least: 5.9
Tested up to: 6.5
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: starter-tool
*/

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

:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --color-text: #1a1a2e;
    --color-text-light: #555;
    --color-bg: #ffffff;
    --color-border: #e2e8f0;
    --max-width: 1140px;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === HEADER === */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo {
    width: auto;
    height: auto;
}

.site-branding-text a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.site-branding-text .site-description {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s;
    padding: 8px 0;
}

.main-nav a:hover {
    color: #6366f1;
}

.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    color: #6366f1;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* === HERO === */
.hero-section {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 60px 24px;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    color: #fff;
}

/* === HERO STATS === */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.hero-stat-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-stat-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.3;
}

/* === TESTIMONIALS === */
.testimonials-section {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonials-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--color-text);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.testimonial-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
}

.star-full {
    fill: #facc15;
}

.star-half-wrap {
    position: relative;
    width: 18px;
    height: 18px;
}

.star-half-wrap svg {
    position: absolute;
    top: 0;
    left: 0;
}

.star-empty {
    fill: #e2e8f0;
}

.testimonial-quote {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.testimonial-position {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* === PAGE HEADER (subpages & posts) === */
.page-header {
    padding: 48px 0;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* === CONTENT === */
.site-content {
    padding: 48px 0 80px;
}

.site-content h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 12px; }
.site-content h3 { font-size: 1.25rem; font-weight: 600; margin: 24px 0 10px; }
.site-content p { margin-bottom: 16px; line-height: 1.7; color: var(--color-text-light); }
.site-content ul, .site-content ol { margin: 0 0 16px 24px; color: var(--color-text-light); }
.site-content li { margin-bottom: 6px; line-height: 1.6; }
.site-content img { border-radius: 8px; margin: 24px 0; }
.site-content a { color: #6366f1; }

.post-meta {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

.featured-image {
    margin-bottom: 32px;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* === FOOTER === */
.site-footer {
    padding: 56px 0 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-column a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-text {
    font-size: 0.875rem;
    line-height: 1.8;
    opacity: 0.85;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8125rem;
    opacity: 0.6;
}

/* === 404 === */
.error-404 {
    text-align: center;
    padding: 100px 24px;
}

.error-404 h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.error-404 p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.error-404 a {
    display: inline-block;
    padding: 12px 28px;
    background: #6366f1;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        padding: 16px 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 10px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 400px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat {
        min-width: 140px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
