/* ==========================================================================
   ReFacing.Kitchen - Shared Stylesheet
   Clean, fast, SEO-optimized design for informational content site
   ========================================================================== */

:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --text: #2c3e50;
    --text-light: #5d6d7e;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #1a252f;
    --border: #e5e8eb;
    --success: #27ae60;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --max-w: 1140px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo span {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.lang-switch {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-alt);
    padding: 0.2rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.lang-switch a {
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s;
}

.lang-switch a.active {
    background: var(--primary);
    color: #fff;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-links.open {
        display: flex;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d3446 100%);
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero-inner {
    max-width: 850px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero h1 .highlight {
    color: var(--accent-light);
}

.hero-desc {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.2rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs span {
    margin: 0 0.4rem;
    opacity: 0.5;
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.content-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.main-content {
    min-width: 0;
}

/* ==========================================================================
   Table of Contents (Sidebar)
   ========================================================================== */

.toc {
    position: sticky;
    top: 5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.toc-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    display: block;
    padding: 0.3rem 0;
    font-size: 0.88rem;
    color: var(--text-light);
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(26,82,118,0.04);
}

.toc-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.toc-cta a {
    display: block;
    text-align: center;
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.toc-cta a:hover {
    background: var(--accent-light);
    color: #fff;
}

@media (max-width: 960px) {
    .content-wrap {
        grid-template-columns: 1fr;
    }
    .toc {
        position: static;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   Article Content Typography
   ========================================================================== */

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    line-height: 1.3;
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.75rem 0 0.75rem;
    line-height: 1.4;
}

.article-content p {
    margin-bottom: 1.1rem;
    line-height: 1.8;
}

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

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content strong {
    color: var(--text);
    font-weight: 600;
}

/* ==========================================================================
   Info Boxes / Callouts
   ========================================================================== */

.info-box {
    background: #eaf2f8;
    border-left: 4px solid var(--primary-light);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}

.info-box.tip {
    background: #fef9e7;
    border-left-color: var(--accent);
}

.info-box.success {
    background: #eafaf1;
    border-left-color: var(--success);
}

.info-box-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-size: 0.95rem;
}

.comparison-table thead {
    background: var(--primary);
    color: #fff;
}

.comparison-table th {
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--bg-alt);
}

.comparison-table tbody tr:hover {
    background: #eaf2f8;
}

.comparison-table .check {
    color: var(--success);
    font-weight: 700;
}

.comparison-table .cross {
    color: #e74c3c;
    font-weight: 700;
}

/* ==========================================================================
   Before/After Gallery
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-alt);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-label {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--text);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
    margin: 2rem 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-alt);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    font-family: var(--font);
    transition: background 0.2s;
    gap: 1rem;
}

.faq-question:hover {
    background: #eaf2f8;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 1rem 1.25rem 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0d3446 100%);
    color: #fff;
    padding: 3.5rem 1.5rem;
    text-align: center;
    margin: 3rem 0 0;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--accent-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,126,34,0.4);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    max-width: var(--max-w);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ==========================================================================
   Last Updated / Author info
   ========================================================================== */

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-meta svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    opacity: 0.6;
}

/* ==========================================================================
   Price Cards
   ========================================================================== */

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.price-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s;
}

.price-card:hover {
    box-shadow: var(--shadow-lg);
}

.price-card.featured {
    border-color: var(--accent);
    background: #fef9e7;
}

.price-card-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.price-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.price-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================================================
   Steps / Process
   ========================================================================== */

.steps {
    counter-reset: step;
    margin: 1.5rem 0;
}

.step-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-num {
    counter-increment: step;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-num::before {
    content: counter(step);
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .site-nav, .toc, .cta-section, .site-footer {
        display: none;
    }
    .content-wrap {
        grid-template-columns: 1fr;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
}
