/* ====================================================
   pSEO Pages — Shared Styles
   Applies to all /see-*-in-room/ and retailer pages.
   Include after base.css, components.css, utilities.css, feedback.css
   ==================================================== */

/* pSEO pages use the sticky header — body padding-top not needed */
body {
    padding-top: 0 !important;
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 180px 24px 80px 24px;
    background: var(--surface-white);
}

.hero h1 {
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 36px;
}

/* ---- Sections ---- */
section {
    padding: 80px 0;
}

/* h2 is already centered by base.css global h2 rule — just adjust spacing */
section h2 {
    margin-bottom: 24px;
    text-align: center;
}

/* p font-size (18px) and color (--text-secondary) come from base.css — only override line-height and margin */
section p {
    line-height: 1.7;
    margin-bottom: 16px;
}

section ul {
    list-style: none;
    margin: 24px 0;
}

/* li does not inherit p font-size — set explicitly */
section li {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

section li::before {
    content: "-";
    position: absolute;
    left: 0;
}

/* ---- Named sections ---- */
.what-is {
    padding: 80px 0;
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.how-it-works {
    background: var(--surface-white);
    text-align: center;
}

.problem {
    background: var(--surface-soft);
    text-align: center;
}

.solution {
    text-align: center;
}

.comparison {
    background: var(--surface-soft);
}

.comparison-table {
    background: var(--bg-color);
    padding: 80px 0;
}

.common-mistakes {
    background: var(--surface-white);
    padding: 80px 0;
}

.placement-guide {
    background: var(--bg-color);
}

.who-this-helps {
    background: var(--bg-color);
}

.supported-retailers {
    background: var(--bg-color);
    padding: 60px 0;
}

.also-visualize {
    background: var(--bg-color);
    padding: 60px 0;
    text-align: center;
}

/* Make "Also visualize with DecorViz" span full width across all pSEO pages */
.also-visualize .container {
    max-width: none;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---- Retailer Logo Slider ---- */
.trust-retailers {
    padding: 40px 0;
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.trust-retailers p {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 48px;
    font-weight: 600;
}

.trust-retailers::before,
.trust-retailers::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.trust-retailers::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.trust-retailers::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.logo-slider {
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
}

.logo-track {
    display: flex;
    gap: 80px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
    align-items: center;
    width: max-content;
}

.logo-item {
    font-size: 28px;
    font-weight: 700;
    color: #bdc3c7;
    user-select: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.logo-item:hover {
    color: var(--primary-color);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 40px)); }
}

@keyframes scroll-examples {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

/* ---- How It Works Steps ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 48px 0;
    text-align: center;
}

.step {
    position: relative;
    margin-top: 30px;
}

/* ---- Benefit Cards ---- */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.benefit-card {
    background: var(--surface-white);
    padding: 28px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
}

/* Override h3 (24px) down to card size */
.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 16px;
}

/* ---- Guide Cards ---- */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.guide-card {
    background: var(--surface-white);
    padding: 26px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.guide-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.guide-card p {
    font-size: 16px;
}

/* ---- Use Case & Mistake Grids ---- */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.mistake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* ---- Comparison Table ---- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-top: 32px;
}

.method-comparison {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.method-comparison th,
.method-comparison td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    color: var(--text-secondary);
}

.method-comparison th {
    background: var(--surface-soft);
    color: var(--text-primary);
    font-weight: 600;
}

.method-comparison .highlight-row td {
    background: rgba(255, 122, 69, 0.08);
    color: var(--text-primary);
    font-weight: 600;
}

/* ---- Room Stage (CSS illustration) ---- */
.room-stage {
    background: var(--surface-white);
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    margin: 48px 0 16px;
}

.room-base {
    width: 100%;
    height: 360px;
    background: linear-gradient(180deg, #e8e4df 0%, #d1cbc4 100%);
    border-radius: 10px;
    position: relative;
}

.wall-art {
    position: absolute;
    width: 24%;
    height: 20%;
    top: 8%;
    left: 8%;
    border: 2px solid rgba(95, 95, 95, 0.3);
    border-radius: 6px;
}

/* ---- Split View (before/after) ---- */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--surface-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin-top: 48px;
    margin-bottom: 32px;
}

.split-panel {
    position: relative;
    min-height: 320px;
}

.room-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ---- Retailer Logo Pills ---- */
.retailer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    color: var(--text-secondary);
}

.retailer-logos span {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-white);
    font-size: 14px;
}

/* ---- Cross-links ---- */
.visualize-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.visualize-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 32px;
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 200px;
}

.visualize-link:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 122, 69, 0.15);
    transform: translateY(-2px);
}

.visualize-link .link-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.visualize-link .link-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ---- FAQ ---- */
.faq-section {
    background: var(--surface-soft);
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 48px;
}

.faq-question.active::after {
    content: "-";
}

/* ---- Final CTA ---- */
.final-cta {
    text-align: center;
    padding: 80px 24px;
    background: rgba(255, 122, 69, 0.1);
}

.final-cta .subtext {
    margin-top: 18px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .hero {
        padding-top: 140px;
    }

    .room-stage {
        padding: 30px;
    }

    .split-view {
        grid-template-columns: 1fr;
    }

    .mistake-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table,
    .common-mistakes,
    .supported-retailers,
    .also-visualize {
        padding: 60px 0;
    }

    .also-visualize .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .visualize-links {
        flex-direction: column;
        align-items: center;
    }

    .visualize-link {
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 60px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}
