:root {
    --pw-blue: #2084b9;
    --pw-dark-blue: #004990;
    --pw-orange: #ff7302;
    --pw-orange-hover: #ffa902;
    --pw-light-gray: #f5f7fa;
    --pw-dark: #1a1a2e;
    --pw-text: #444;
    --pw-text-light: #666;
    --pw-radius: 8px;
}

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

html { height: 100%; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--pw-text);
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

body > .pw-footer { margin-top: auto; }

img { max-width: 100%; height: auto; }
a { color: var(--pw-blue); text-decoration: none; }
a:hover { color: var(--pw-orange); }

/* Layout */
.pw-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.pw-container-narrow { max-width: 800px; }
.pw-section { padding: 5rem 0; }
.pw-text-center { text-align: center; }
.pw-lead { font-size: 1.15rem; color: var(--pw-text-light); margin-bottom: 0.75rem; }

/* Header */
.pw-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.pw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.pw-logo { display: flex; align-items: center; text-decoration: none; }
.pw-logo img { max-height: 50px; width: auto; }
.pw-logo-text { font-size: 1.5rem; font-weight: 700; color: var(--pw-dark-blue); }

.pw-nav-list {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.pw-nav-list a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--pw-dark-blue);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--pw-radius);
    transition: background .2s, color .2s;
}

.pw-nav-list a:hover,
.pw-nav-item.active a { color: var(--pw-blue); background: var(--pw-light-gray); }

.pw-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.pw-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pw-dark-blue);
    transition: transform .2s;
}

/* Hero */
.pw-hero {
    background: linear-gradient(135deg, var(--pw-dark-blue) 0%, var(--pw-blue) 100%);
    color: #fff;
    padding: 5rem 0;
}

.pw-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.pw-hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; }

.pw-hero-list {
    list-style: none;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.pw-hero-list li {
    padding: 0.4rem 0;
    padding-left: 1.75rem;
    position: relative;
}

.pw-hero-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--pw-orange);
    font-weight: 700;
}

.pw-hero-image { text-align: center; }
.pw-hero-image img { max-width: 100%; border-radius: var(--pw-radius); }

/* Buttons */
.pw-btn-primary {
    display: inline-block;
    background: var(--pw-orange);
    color: #fff;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--pw-radius);
    transition: background .2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.pw-btn-primary:hover { background: var(--pw-orange-hover); color: #fff; }

.pw-btn-outline {
    display: inline-block;
    border: 2px solid var(--pw-blue);
    color: var(--pw-blue);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--pw-radius);
    transition: background .2s, color .2s;
}

.pw-btn-outline:hover { background: var(--pw-blue); color: #fff; }

.pw-btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* Section titles */
.pw-section-title {
    text-align: center;
    color: var(--pw-dark-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pw-section-subtitle {
    text-align: center;
    color: var(--pw-text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Features */
.pw-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pw-feature-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--pw-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.pw-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.pw-feature-icon {
    color: var(--pw-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pw-feature-card h3 {
    color: var(--pw-dark-blue);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.pw-feature-card p { color: var(--pw-text-light); font-size: 0.9rem; }

/* Cards */
.pw-card {
    background: #fff;
    border-radius: var(--pw-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .2s;
}

.pw-card:hover { transform: translateY(-4px); }
.pw-card-img { width: 100%; height: 160px; object-fit: contain; padding: 2rem 3rem; border-bottom: 1px solid #e9ecef; }
.pw-card-body { padding: 1.5rem; }
.pw-card-body h2, .pw-card-body h3 { color: var(--pw-dark-blue); font-size: 1.15rem; margin-bottom: 0.5rem; }
.pw-card-body p { color: var(--pw-text-light); font-size: 0.9rem; margin-bottom: 1rem; }

.pw-badge {
    display: inline-block;
    background: var(--pw-blue);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.pw-link { color: var(--pw-blue); font-weight: 500; font-size: 0.9rem; }
.pw-link:hover { color: var(--pw-orange); }

/* Grids */
.pw-install-grid, .pw-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pw-doc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pw-doc-card {
    border: 1px solid #e9ecef;
    border-radius: var(--pw-radius);
    padding: 2rem;
    text-align: center;
    transition: border-color .2s, transform .2s;
}

.pw-doc-card:hover { border-color: var(--pw-blue); transform: translateY(-2px); }

.pw-doc-icon {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pw-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--pw-light-gray);
    border-radius: var(--pw-radius);
    display: inline-block;
}

.pw-doc-card h2 { font-size: 1.1rem; color: var(--pw-dark-blue); margin-bottom: 1rem; }

/* Installations section */
.pw-installations-section { background: var(--pw-light-gray); }

/* Testimonial */
.pw-testimonial-card {
    background: #fff;
    border-radius: var(--pw-radius);
    padding: 3rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    position: relative;
}

.pw-testimonial-quote {
    font-size: 4rem;
    color: var(--pw-blue);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pw-testimonial-card blockquote {
    font-style: italic;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.pw-testimonial-author {
    font-weight: 600;
    color: var(--pw-dark-blue);
}

.pw-testimonial-author span {
    display: block;
    font-weight: 400;
    color: var(--pw-text-light);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* CTA */
.pw-cta {
    background: linear-gradient(135deg, var(--pw-dark-blue) 0%, var(--pw-blue) 100%);
    color: #fff;
    padding: 5rem 0;
}

.pw-cta h2 { color: #fff; font-size: 2rem; margin-bottom: 0.75rem; }
.pw-cta p { opacity: 0.9; font-size: 1.15rem; margin-bottom: 2rem; }

/* Page Header */
.pw-page-header {
    background: linear-gradient(135deg, var(--pw-dark-blue) 0%, var(--pw-blue) 100%);
    color: #fff;
    padding: 3rem 0;
}

.pw-page-header h1 { font-weight: 700; margin-bottom: 0; }
.pw-page-header p { opacity: 0.8; margin-top: 0.5rem; }
.pw-page-header-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; opacity: 0.7; margin-bottom: 0.25rem; }

/* Showcase */
.pw-showcase-logo { max-width: 140px; margin-bottom: 2rem; }
.pw-showcase-logo img { max-width: 100%; height: auto; }
.pw-showcase-content h3 { color: var(--pw-dark-blue); margin-top: 2rem; margin-bottom: 0.75rem; }
.pw-showcase-content ul { margin: 0 0 1.5rem 1.25rem; }
.pw-showcase-content li { margin-bottom: 0.4rem; color: var(--pw-text-light); }

/* Steps */
.pw-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.pw-step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--pw-blue);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.pw-step h4 { color: var(--pw-dark-blue); font-weight: 600; margin-bottom: 0.5rem; }
.pw-step p { color: var(--pw-text-light); font-size: 0.9rem; }

/* Config page highlights */
.pw-config-highlights { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.pw-config-highlight {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--pw-radius);
    padding: 0.75rem 1.5rem;
    color: #fff;
    font-size: 1rem;
    margin: 0;
}

/* Detailed steps */
.pw-steps-detailed { max-width: 800px; margin: 0 auto; }
.pw-step-detailed {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}
.pw-step-detailed:last-child { border-bottom: none; }

.pw-step-visual {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 80px;
}

.pw-step-icon { font-size: 2rem; color: var(--pw-blue); }

.pw-step-info h3 { color: var(--pw-dark-blue); font-size: 1.25rem; margin-bottom: 0.5rem; }
.pw-step-info p { color: var(--pw-text-light); line-height: 1.7; margin: 0; }

/* Stats */
.pw-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.pw-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pw-dark-blue);
    line-height: 1.2;
}

.pw-stat-label {
    color: var(--pw-text-light);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .pw-config-highlights { flex-direction: column; align-items: center; }
    .pw-step-detailed { flex-direction: column; text-align: center; }
    .pw-step-visual { flex-direction: row; width: auto; margin: 0 auto; }
    .pw-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Featured image */
.pw-featured-image { margin-bottom: 2rem; }
.pw-featured-image img { width: 100%; border-radius: var(--pw-radius); }

/* Footer */
.pw-footer {
    background: var(--pw-dark);
    color: rgba(255,255,255,.7);
    padding: 3rem 0 1.5rem;
}

.pw-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 0.75rem; }
.pw-footer a { color: rgba(255,255,255,.7); transition: color .2s; }
.pw-footer a:hover { color: var(--pw-orange); }

.pw-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pw-footer-nav { list-style: none; }
.pw-footer-nav li { margin-bottom: 0.5rem; }
.pw-footer-nav a { font-size: 0.9rem; }

.pw-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Back to Top */
.pw-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--pw-dark-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, background .2s;
}

.pw-back-to-top.visible { opacity: 1; visibility: visible; }
.pw-back-to-top:hover { background: var(--pw-blue); }

/* Gravity Forms overrides */
.gform_wrapper .gfield_label { font-weight: 600; color: var(--pw-dark-blue); }
.gform_wrapper .gform_button {
    background: var(--pw-orange);
    border: none;
    color: #fff;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--pw-radius);
    cursor: pointer;
}
.gform_wrapper .gform_button:hover { background: var(--pw-orange-hover); }

/* WP Content Styling */
.pw-section .wp-block-heading { color: var(--pw-dark-blue); }
.pw-section p { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 1024px) {
    .pw-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .pw-install-grid, .pw-doc-grid { grid-template-columns: repeat(2, 1fr); }
    .pw-steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pw-nav-toggle { display: flex; }
    .pw-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
    .pw-nav.open { display: block; }
    .pw-nav-list { flex-direction: column; padding: 1rem; }
    .pw-nav-list a { padding: 0.75rem 1rem; }

    .pw-hero-grid { grid-template-columns: 1fr; }
    .pw-hero { padding: 3rem 0; }
    .pw-hero h1 { font-size: 2rem; }
    .pw-hero-image { display: none; }

    .pw-feature-grid, .pw-install-grid, .pw-doc-grid, .pw-footer-grid, .pw-steps-grid {
        grid-template-columns: 1fr;
    }

    .pw-section { padding: 3rem 0; }
}
