/* ============================================
   FABRIC PAGE STYLES
   ============================================ */

.fabric-page {
    padding-bottom: 0;
}

/* Fabric Hero */
.fabric-page .hero-banner-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fabric-page .hero-banner-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-white);
}

.fabric-page .hero-banner-bg picture,
.fabric-page .hero-banner-bg img {
    display: block;
    width: 100%;
    height: 100%;
}

.fabric-page .hero-banner-bg img {
    object-fit: cover;
    object-position: center;
}

.fabric-page .hero-banner-section--image {
    display: block;
    height: auto;
    min-height: 0;
}

.fabric-page .hero-banner-section--image .hero-banner-bg {
    position: relative;
    inset: auto;
}

.fabric-page .hero-banner-section--image .hero-banner-bg picture,
.fabric-page .hero-banner-section--image .hero-banner-bg img {
    height: auto;
}

.fabric-page .hero-banner-section--image .hero-banner-bg img {
    max-height: none;
    object-fit: contain;
}

.fabric-page .hero-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 0 24px;
}

.fabric-page .hero-banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}

.fabric-page .hero-banner-content p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    /* max-width: 560px; */
}

.fabric-image-section {
    padding: clamp(72px, 8vw, 112px) 0;
    background: var(--bg-cream);
}

.fabric-image-section__layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(40px, 7vw, 96px);
}

.fabric-image-section__layout--image-only .fabric-image-section__gallery {
    grid-column: 1 / -1;
}

.fabric-image-section__header {
    max-width: 440px;
    margin: 0;
    text-align: left;
}

.fabric-image-section__header h2 {
    margin-bottom: 24px;
    color: var(--accent);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0.02em;
}

.fabric-image-section__header p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
}

.fabric-image-section__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fabric-image-section__gallery--single {
    grid-template-columns: minmax(0, 1fr);
}

.fabric-image-section__figure {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.fabric-image-section__figure img {
    display: block;
    width: 100%;
    height: clamp(280px, 32vw, 520px);
    object-fit: cover;
}

.fabric-image-section__gallery--single .fabric-image-section__figure {
    max-width: 1100px;
}

.fabric-image-section__layout--image-only .fabric-image-section__gallery--single .fabric-image-section__figure img {
    height: auto;
    max-height: 620px;
}

@media (min-width: 769px) {
    .fabric-image-section__layout:not(.fabric-image-section__layout--image-only) {
        align-items: stretch;
    }

    .fabric-image-section__layout:not(.fabric-image-section__layout--image-only) .fabric-image-section__gallery,
    .fabric-image-section__layout:not(.fabric-image-section__layout--image-only) .fabric-image-section__figure,
    .fabric-image-section__layout:not(.fabric-image-section__layout--image-only) .fabric-image-section__figure img {
        height: 100%;
    }

    .fabric-image-section__layout:not(.fabric-image-section__layout--image-only) .fabric-image-section__figure img {
        object-fit: cover;
    }
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: var(--bg-cream);
}

.process-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.process-header p {
    font-size: 16px;
    color: var(--text-gray);
}

.process-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.process-steps::before {
    position: absolute;
    top: 56px;
    right: 12%;
    left: 12%;
    height: 1px;
    background: var(--border-color);
    content: '';
}

.process-step {
    z-index: 1;
}

.process-step {
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.process-step p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.comparison-section--image {
    padding: 0;
}

.comparison-section--image .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.comparison-image-wrapper {
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.comparison-image-wrapper picture,
.comparison-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.comparison-header {
    text-align: center;
    margin-bottom: 48px;
}

.comparison-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.comparison-header p {
    font-size: 16px;
    color: var(--text-gray);
}

.comparison-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table thead th {
    padding: 20px 24px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table thead th:first-child {
    background: var(--bg-cream);
    color: var(--text-gray);
}

.comparison-table thead th:nth-child(2) {
    background: var(--primary-dark);
    color: white;
}

.comparison-table thead th:nth-child(3) {
    background: var(--bg-light);
    color: var(--text-dark);
}

.comparison-table td {
    padding: 16px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-gray);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

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

.comparison-table .cross {
    color: #dc3545;
}

/* Specs Section */
.specs-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.specs-header {
    text-align: center;
    margin-bottom: 48px;
}

.specs-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.spec-item {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.spec-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.spec-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Shared CMS feature fallbacks */
.fabric-page .features {
    padding: 80px 0;
    background: var(--bg-cream);
}

.fabric-page .features-header {
    margin-bottom: 48px;
    text-align: center;
}

.fabric-page .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.fabric-page .features-grid > .feature-item {
    min-width: 0;
    padding: 40px 28px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    text-align: center;
    transition: var(--transition);
}

.fabric-page .features-grid > .feature-item:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.fabric-page .features-grid > .feature-item h3,
.fabric-page .features-grid > .feature-item h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
}

.fabric-page .features-grid > .feature-item > p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
}

/* CTA Banner */
.fabric-cta {
    padding: 80px 0;
    background: var(--primary-dark);
    text-align: center;
    color: white;
}

.fabric-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.fabric-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}

.fabric-cta .btn {
    background: white;
    color: var(--primary-dark);
}

.fabric-cta .btn:hover {
    background: var(--bg-cream);
}

/* Responsive */
@media (max-width: 1024px) {
    .fabric-page .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fabric-image-section__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fabric-image-section__header {
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }

    .fabric-image-section__gallery {
        gap: 12px;
    }

    .fabric-image-section__figure img {
        height: 320px;
    }

    .fabric-page .features-grid {
        grid-template-columns: 1fr;
    }

    .process-steps::before {
        display: none;
    }

    .fabric-page .hero-banner-section--text {
        min-height: 320px;
    }

    .fabric-page .hero-banner-content h1 {
        font-size: 32px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-header h2,
    .comparison-header h2,
    .features-header h2,
    .specs-header h2,
    .fabric-cta h2 {
        font-size: 24px;
    }

    .comparison-table thead th,
    .comparison-table td {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .fabric-image-section__gallery {
        grid-template-columns: 1fr;
    }

    .fabric-image-section__figure img {
        height: auto;
        max-height: 420px;
    }
}
