﻿/* =======================
   BASE STYLES (Mobile First)
   ======================= */

.thermoforming {
    padding: 1rem;
}

/* =====================
   LIGHT THEME
   ===================== */
.light .tf-section,
.light .tf-page-header {
    background: #ffffff;
    color: #111;
}

.light .tf-lead,
.light .tf-section p,
.light .tf-section li,
.light .tf-steps li span {
    color: #333;
}

.light .tf-card {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    color: #111;
}

.light .tf-card h3 {
    color: #0d6efd;
    border-bottom: 2px solid #e2e8f0;
}

.light .tf-card li {
    color: #333;
}

.light .tf-steps li {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
}

.light .tf-step-num {
    background: #0d6efd;
    color: #fff;
}

.light .btn-primary {
    background: #0d6efd;
    color: #fff;
}

.light .btn-primary:hover {
    background: #084298;
}

/* =====================
   DARK THEME
   ===================== */
.dark .tf-section,
.dark .tf-page-header {
    background: #121212;
    color: #f2f2f2;
}

.dark .tf-lead,
.dark .tf-section p,
.dark .tf-section li,
.dark .tf-steps li span {
    color: #d0d0d0;
}

.dark .tf-card {
    background: #1e1e1e;
    border: 1px solid #333;
    color: #f2f2f2;
}

.dark .tf-card h3 {
    color: #ffb703;
    border-bottom: 2px solid #333;
}

.dark .tf-card li {
    color: #d0d0d0;
}

.dark .tf-steps li {
    background: #1e1e1e;
    border: 1px solid #333;
}

.dark .tf-step-num {
    background: #ffb703;
    color: #111;
}

.dark .btn-primary {
    background: #ffb703;
    color: #111;
}

.dark .btn-primary:hover {
    background: #e6a700;
}

/* =====================
   COMMON STYLES - Mobile First
   ===================== */

/* PAGE HEADER */
.tf-page-header {
    margin-bottom: 1.5rem;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a3b8c 100%);
    color: #fff !important;
}

.tf-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.tf-lead {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85) !important;
    letter-spacing: 0.5px;
}

/* Override dark/light for page header since it has its own gradient bg */
.light .tf-page-header,
.dark .tf-page-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a3b8c 100%);
    color: #fff;
}

.light .tf-lead { color: rgba(255,255,255,0.85) !important; }
.dark .tf-lead  { color: rgba(255,255,255,0.85) !important; }

/* SECTION */
.tf-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tf-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tf-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* TAGS */
.tf-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tf-tag.thin {
    background: #0d6efd;
    color: #fff;
}

.tf-tag.thick {
    background: #e67e22;
    color: #fff;
}

/* CARD GRID */
.tf-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* CARDS */
.tf-card {
    border-radius: 12px;
    padding: 1.25rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.tf-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.tf-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}

.tf-card ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.tf-card li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* PROCESS STEPS */
.tf-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.tf-steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.tf-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* CTA BANNER */
.tf-cta {
    background: linear-gradient(135deg, #0d6efd 0%, #0a3b8c 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.tf-cta h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.tf-cta p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.tf-cta-btn {
    display: inline-block;
    background: #fff;
    color: #0d6efd;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
}

.tf-cta-btn:hover {
    background: #e8f0fe;
    transform: translateY(-2px);
}

/* FOOTER */
.tf-footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
}

/* BUTTON */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

/* =======================
   TABLET (481px - 768px)
   ======================= */

@media (min-width: 481px) {
    .thermoforming {
        padding: 1.5rem;
    }

    .tf-page-header {
        padding: 2.5rem 2rem;
    }

    .tf-page-header h1 {
        font-size: 2.3rem;
    }

    .tf-lead {
        font-size: 1.05rem;
    }

    .tf-section {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .tf-section h2 {
        font-size: 1.85rem;
    }

    .tf-cta h2 {
        font-size: 1.85rem;
    }
}

/* =======================
   TABLET LANDSCAPE (769px - 1024px)
   ======================= */

@media (min-width: 769px) {
    .thermoforming {
        padding: 2rem;
    }

    .tf-page-header {
        margin-bottom: 2rem;
        border-radius: 12px;
    }

    .tf-page-header h1 {
        font-size: 2.5rem;
    }

    .tf-section {
        padding: 2.5rem;
        border-radius: 12px;
        margin-bottom: 2rem;
    }

    .tf-section h2 {
        font-size: 2rem;
    }

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

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

    .tf-cta {
        padding: 4rem 2.5rem;
        border-radius: 12px;
    }

    .tf-cta h2 {
        font-size: 2rem;
    }
}

/* =======================
   DESKTOP (1025px and up)
   ======================= */

@media (min-width: 1025px) {
    .thermoforming {
        padding: 2.5rem 2rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    .tf-page-header {
        padding: 3.5rem 3rem;
    }

    .tf-page-header h1 {
        font-size: 2.8rem;
    }

    .tf-lead {
        font-size: 1.15rem;
        max-width: 700px;
    }

    .tf-section {
        padding: 2.5rem;
        margin-bottom: 2rem;
    }

    .tf-section h2 {
        font-size: 2.15rem;
    }

    .tf-section p {
        font-size: 1.05rem;
    }

    .tf-card li {
        font-size: 1rem;
    }

    .tf-steps li span:last-child {
        font-size: 1.05rem;
    }
}

/* =======================
   LARGE DESKTOP (1400px+)
   ======================= */

@media (min-width: 1400px) {
    .thermoforming {
        max-width: 1600px;
        padding: 3rem;
    }

    .tf-section {
        padding: 3rem;
    }
}

/* =======================
   SMOOTH TRANSITIONS
   ======================= */

.thermoforming,
.tf-section,
.tf-page-header,
.tf-card,
.tf-steps li,
.btn-primary {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =======================
   SMALL SCREENS
   ======================= */

@media (max-width: 380px) {
    .tf-page-header h1 {
        font-size: 1.75rem;
    }

    .tf-section h2 {
        font-size: 1.4rem;
    }
}

/* =======================
   THICK SHEET ACCENT (Orange)
   ======================= */

.tf-page-header--thick {
    background: linear-gradient(135deg, #e67e22 0%, #a04000 100%);
}

.light .tf-step-num--thick,
.dark .tf-step-num--thick {
    background: #e67e22;
    color: #fff;
}

.tf-cta--thick {
    background: linear-gradient(135deg, #e67e22 0%, #a04000 100%);
}

.tf-cta-btn--thick {
    color: #e67e22;
}

/* =======================
   SIGNAGE ACCENT (Teal / Green)
   ======================= */

.tf-page-header--signage {
    background: linear-gradient(135deg, #0f9b8e 0%, #076056 100%);
}

.light .tf-step-num--signage,
.dark .tf-step-num--signage {
    background: #0f9b8e;
    color: #fff;
}

.tf-cta--signage {
    background: linear-gradient(135deg, #0f9b8e 0%, #076056 100%);
}

/* Print styles */
@media print {
    .tf-footer,
    .tf-cta {
        display: none;
    }

    .tf-section {
        page-break-inside: avoid;
    }
}

