/**
 * Begehbares Glas, Complete Design System
 * Single authoritative stylesheet, derived directly from the approved demo.
 * Enqueued LAST so it wins all cascade conflicts cleanly.
 *
 * Sections:
 *   1. Section base (padding, container, eyebrow, headings)
 *   2. Header (sticky blur, dot logo, nav)
 *   3. Hero (text-left, image-right, datasheet spec strip)
 *   4. Use-cases mosaic (3-col, 1 big + 4 small)
 *   5. Calculator visuals (pills, fields, summary)
 *   6. FAQ (numbered cats, +/- toggle)
 *   7. Footer (dark sky-blue)
 *   8. Buttons (sky-blue primary + ghost secondary)
 *
 * Safety section styles live in safety.css (sky-blue manifesto layout).
 *
 * @package Begehbaresglas
 */

/* ==========================================================================
   1. SECTION BASE
   ========================================================================== */

.ts-hero,
.ts-use-cases,
.ts-calc-section,
.ts-faq-section {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: var(--ts-black);
    overflow: hidden;
}

.ts-hero-container,
.ts-use-cases-container,
.ts-calc-container,
.ts-faq-container {
    max-width: var(--ts-max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* Common section head pattern (left-aligned + eyebrow + title + subtitle) */
.ts-use-cases-header,
.ts-calc-header,
.ts-faq-header {
    text-align: left;
    margin-bottom: 3rem;
    max-width: 720px;
}

.ts-hero-eyebrow,
.ts-use-cases-eyebrow,
.ts-calc-eyebrow,
.ts-faq-header .ts-section-label {
    display: inline-block;
    font-family: var(--ts-font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ts-accent);
    margin-bottom: 1rem;
}

.ts-hero-title,
.ts-use-cases-title,
.ts-calc-title,
.ts-faq-header h2 {
    font-family: var(--ts-font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ts-white);
    margin: 0 0 1rem;
}

.ts-hero-subtitle,
.ts-use-cases-subtitle,
.ts-calc-subtitle,
.ts-faq-header .ts-section-subtitle {
    font-size: 1.05rem;
    color: var(--ts-silver);
    margin: 0;
    max-width: 56ch;
    line-height: 1.6;
}

/* ==========================================================================
   2. HEADER, sticky blur with dot logo
   ========================================================================== */

.ts-header {
    position: sticky;
    top: 0;
    z-index: 10001;
    height: var(--ts-header-height);
    background: #ffffff;
    border-bottom: 1px solid rgba(42, 37, 32, 0.08);
    box-shadow: 0 1px 3px rgba(42, 37, 32, 0.04);
}

/* Enhanced shadow appears on scroll, optional polish */
.ts-header.is-scrolled {
    box-shadow: 0 4px 16px rgba(42, 37, 32, 0.08);
}

/* When WP admin bar is visible, push sticky header below it */
.admin-bar .ts-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .ts-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .ts-header {
        top: 0;
        position: relative;
    }
}

.ts-header .ts-container {
    height: 100%;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    max-width: var(--ts-max-width);
}

.ts-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

/* Logo, dot + wordmark */
.ts-logo,
a.ts-logo,
.ts-logo.ts-logo-text,
a.ts-logo.ts-logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    font-family: var(--ts-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ts-white);
    text-decoration: none;
    line-height: 1;
}

.ts-logo-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--ts-accent);
    border-radius: 50%;
    transform: translateY(-1px);
    flex-shrink: 0;
}

.ts-logo-name {
    color: var(--ts-white);
}

/* Nav menu, center */
.ts-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ts-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.ts-nav-menu a {
    color: var(--ts-silver);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ts-nav-menu a:hover,
.ts-nav-menu .current-menu-item a {
    color: var(--ts-white);
}

/* Header right side, phone + cart */
.ts-header-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ts-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    background: transparent;
    border: 1px solid var(--ts-line-strong, rgba(42, 37, 32, 0.15));
    border-radius: 6px;
    color: var(--ts-accent);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.ts-header-phone:hover {
    border-color: var(--ts-accent);
    background: rgba(205, 138, 120, 0.06);
}

.ts-cart-link {
    color: var(--ts-silver);
    padding: 0.5rem;
    display: inline-flex;
    transition: color 0.2s;
}

.ts-cart-link:hover {
    color: var(--ts-accent);
}

/* Mobile menu toggle (kept invisible until needed) */
@media (max-width: 900px) {
    .ts-nav {
        display: none;
    }
}

/* ==========================================================================
   3. HERO, text-left / image-right
   ========================================================================== */

.ts-hero {
    padding-top: 0;
}

.ts-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: clamp(3rem, 7vw, 5rem);
}

.ts-hero-text {
    /* No `order` — natural source order places text in the first grid column.
       Adding an explicit order pushed it after .sg-hero-showcase (default 0). */
}

.ts-hero-eyebrow {
    margin-bottom: 1.5rem;
}

.ts-hero-title {
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin: 0 0 1.6rem;
    font-variation-settings: 'opsz' 96;
}

.ts-hero-title .ts-hero-accent {
    color: var(--ts-accent);
}

.ts-hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    max-width: 54ch;
    margin-bottom: 2.2rem;
}

.ts-hero-cta {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Image (right column) */
.ts-hero-media {
    order: 2;
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(42, 37, 32, 0.12);
}

.ts-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Spec strip, mono datasheet (4 cols, vertical dividers) */
.ts-hero-specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--ts-glass-border);
    border-bottom: 1px solid var(--ts-glass-border);
}

.ts-hero-spec {
    padding: 1rem 1rem 1rem 0;
    border-right: 1px solid var(--ts-glass-border);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ts-hero-spec:last-child {
    border-right: 0;
}

.ts-hero-spec:not(:first-child) {
    padding-left: 1rem;
}

.ts-hero-spec-label {
    font-family: var(--ts-font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ts-silver-light);
}

.ts-hero-spec-value {
    font-family: var(--ts-font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ts-white);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

@media (max-width: 960px) {
    .ts-hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ts-hero-media {
        aspect-ratio: 16/10;
    }
}

@media (max-width: 600px) {
    .ts-hero-specs {
        grid-template-columns: 1fr 1fr;
    }
    .ts-hero-spec:nth-child(2) {
        border-right: 0;
    }
    .ts-hero-spec:nth-child(1),
    .ts-hero-spec:nth-child(2) {
        border-bottom: 1px solid var(--ts-glass-border);
    }
    .ts-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .ts-hero-cta .ts-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   4. USE-CASES MOSAIC, 3-col with big tile spanning 2x2
   ========================================================================== */

.ts-use-cases-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 280px 280px;
    gap: 1rem;
}

.ts-mosaic-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background: var(--ts-dark-tertiary);
    box-shadow: 0 2px 6px rgba(42, 37, 32, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ts-mosaic-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(192, 128, 112, 0.15);
}

.ts-mosaic-tile--big {
    grid-column: span 2;
    grid-row: span 2;
}

.ts-mosaic-tile--small,
.ts-mosaic-tile--tall {
    grid-column: span 1;
    grid-row: span 1;
}

.ts-mosaic-tile-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ts-mosaic-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.ts-mosaic-tile:hover .ts-mosaic-tile-img img {
    transform: scale(1.05);
}

/* Warm dark gradient overlay, content sits at the bottom */
.ts-mosaic-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
        rgba(42, 37, 32, 0.82) 0%,
        rgba(42, 37, 32, 0.28) 45%,
        rgba(42, 37, 32, 0.05) 75%);
    display: flex;
    align-items: flex-end;
    padding: 1.4rem 1.5rem 1.3rem;
    pointer-events: none;
}

.ts-mosaic-tile-label {
    font-family: var(--ts-font-display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: #ffffff;
}

.ts-mosaic-tile--big .ts-mosaic-tile-label {
    font-size: 2rem;
}

@media (max-width: 900px) {
    .ts-use-cases-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 240px 200px 200px 200px;
    }
    .ts-mosaic-tile--big {
        grid-column: span 2;
        grid-row: span 1;
    }
    .ts-mosaic-tile--big .ts-mosaic-tile-label {
        font-size: 1.4rem;
    }
}

@media (max-width: 500px) {
    .ts-use-cases-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
    }
    .ts-mosaic-tile--big,
    .ts-mosaic-tile--tall,
    .ts-mosaic-tile--small {
        grid-column: span 1;
        grid-row: span 1;
    }
    .ts-mosaic-tile--big .ts-mosaic-tile-label {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   5. CALCULATOR visuals (works with existing calculator.css behaviour)
   Demo: 1.55fr / 1fr grid, pill thickness selector, mono labels, summary panel
   ========================================================================== */

.ts-calc-section {
    background: var(--ts-black);
}

/* Calculator layout: pure grid, no outer card wrapping the columns.
   Each column (piece card, summary panel) provides its own surface. */

/* Field labels, mono uppercase */
.ts-piece-field label,
.ts-calc-field label {
    font-family: var(--ts-font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ts-silver-light);
    font-weight: 500;
    margin-bottom: 0.45rem;
    display: block;
}

/* Thickness pills, demo style */
.ts-piece-pill {
    background: var(--ts-black);
    border: 1px solid #d9cfc1;
    border-radius: 6px;
    color: var(--ts-silver);
    font-size: 14px;
    font-weight: 500;
    padding: 0.7rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1 1 auto;
    min-width: 90px;
    text-align: center;
}

.ts-piece-pill:hover {
    border-color: var(--ts-accent);
    color: var(--ts-accent);
}

.ts-piece-pill.is-active {
    background: var(--ts-accent);
    border-color: var(--ts-accent);
    color: #ffffff;
}

/* Inputs, selects */
.ts-piece-input,
.ts-piece-edge,
.ts-piece-glass-type,
.ts-piece-color {
    background: var(--ts-black);
    border: 1px solid #d9cfc1;
    border-radius: 6px;
    color: var(--ts-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ts-piece-input:focus-within,
.ts-piece-edge:focus,
.ts-piece-glass-type:focus,
.ts-piece-color:focus {
    border-color: var(--ts-accent);
    box-shadow: 0 0 0 3px rgba(205, 138, 120, 0.08);
}

/* Total summary panel, warm taupe gradient */
.ts-calc-total {
    background: linear-gradient(180deg, var(--ts-accent) 0%, var(--ts-accent-dark) 100%);
    color: #ffffff;
    border-radius: var(--ts-radius-xl);
    padding: 1.625rem;
}

.ts-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.32rem 0;
    border-bottom: 0;
}

.ts-calc-row span:first-child {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.ts-calc-row-value {
    font-family: var(--ts-font-display);
    font-weight: 500;
    font-size: 15px;
    color: #ffffff;
}

.ts-calc-row-big {
    background: transparent;
    border-radius: 0;
    margin-top: 0.85rem;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.1rem;
}

.ts-calc-row-big span:first-child {
    font-family: var(--ts-font-body);
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-transform: none;
    letter-spacing: 0;
}

.ts-calc-row-big .ts-calc-row-value {
    font-family: var(--ts-font-display);
    font-size: 1.875rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.015em;
    font-variation-settings: 'opsz' 60;
}

/* ==========================================================================
   6. FAQ accordion, numbered cats + +/- toggle
   ========================================================================== */

.ts-faq-section {
    background: var(--ts-black);
}

.ts-faq-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
    margin-top: 1rem;
}

@media (max-width: 800px) {
    .ts-faq-categories {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.ts-faq-category {
    background: transparent;
    border: 0;
    padding: 0;
}

.ts-faq-category-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--ts-glass-border);
}

.ts-faq-category-icon {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    font-family: var(--ts-font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--ts-accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.ts-faq-category-icon svg {
    display: none;
}

.ts-faq-category-header h3 {
    font-family: var(--ts-font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ts-white);
    letter-spacing: -0.015em;
    margin: 0;
}

.ts-faq-items {
    display: flex;
    flex-direction: column;
}

.ts-faq-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ts-glass-border);
    border-radius: 0;
    padding: 0;
}

.ts-faq-item:last-child {
    border-bottom: 0;
}

.ts-faq-question {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0.9rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    color: var(--ts-white);
    font-family: var(--ts-font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    transition: color 0.2s;
}

.ts-faq-question:hover {
    color: var(--ts-accent);
}

/* Plus/minus toggle, drawn purely with CSS (no font glyph dependency) */
.ts-faq-icon {
    width: 14px;
    height: 14px;
    background: transparent;
    border-radius: 0;
    color: var(--ts-accent);
    flex-shrink: 0;
    position: relative;
    margin-top: 6px;
    display: inline-block;
}

.ts-faq-icon svg {
    display: none;
}

.ts-faq-icon::before,
.ts-faq-icon::after {
    content: '';
    position: absolute;
    background: var(--ts-accent);
    transition: transform 0.25s ease;
}

.ts-faq-icon::before {
    /* Horizontal bar */
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    margin-top: -1px;
}

.ts-faq-icon::after {
    /* Vertical bar, hidden when expanded to make it a minus */
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
}

.ts-faq-item.active .ts-faq-icon::after {
    transform: scaleY(0);
}

.ts-faq-item.active .ts-faq-question {
    color: var(--ts-accent);
}

.ts-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ts-faq-item.active .ts-faq-answer {
    max-height: 1000px;
}

.ts-faq-answer p {
    margin: 0 0 0.9rem;
    font-size: 14px;
    color: var(--ts-silver);
    line-height: 1.65;
    max-width: 65ch;
}

/* FAQ CTA (footer of the section) */
.ts-faq-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--ts-dark-secondary);
    border-radius: 10px;
    text-align: left;
}

.ts-faq-cta h3 {
    font-family: var(--ts-font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ts-white);
    margin: 0 0 0.5rem;
    letter-spacing: -0.015em;
}

.ts-faq-cta p {
    color: var(--ts-silver);
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ==========================================================================
   7. FOOTER, dark sky-blue
   ========================================================================== */

.ts-footer {
    background: #2a2520;
    color: rgba(217, 207, 193, 0.85);
    padding: 3.5rem 0 2rem;
    border-top: 0;
}

.ts-footer-container {
    max-width: var(--ts-max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.ts-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 0;
    border-bottom: 0;
}

.ts-footer-brand {
    max-width: 36ch;
}

.ts-footer-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 1rem;
    text-decoration: none;
    font-family: var(--ts-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.ts-footer-logo::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #cd8a78;
    border-radius: 50%;
    transform: translateY(-1px);
}

.ts-footer-logo-text {
    color: #ffffff;
}

.ts-footer-logo-text span {
    color: #ffffff;
}

.ts-footer-description {
    color: rgba(217, 207, 193, 0.75);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.ts-footer-contact-item {
    color: rgba(217, 207, 193, 0.85);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.ts-footer-contact-item:hover {
    color: #cd8a78;
}

.ts-footer-heading {
    font-family: var(--ts-font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(217, 207, 193, 0.6);
    font-weight: 500;
    margin: 0 0 1rem;
}

.ts-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ts-footer-links li {
    margin-bottom: 0.55rem;
}

.ts-footer-links a {
    color: rgba(217, 207, 193, 0.85);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.ts-footer-links a:hover {
    color: #cd8a78;
    transform: none;
}

.ts-footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.ts-footer-copyright,
.ts-footer-partner {
    font-size: 12px;
    color: rgba(217, 207, 193, 0.55);
    margin: 0;
}

.ts-footer-partner a {
    color: rgba(217, 207, 193, 0.85);
    text-decoration: none;
}

.ts-footer-partner a:hover {
    color: #cd8a78;
}

.ts-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(217, 207, 193, 0.85);
    text-decoration: none;
    transition: all 0.2s;
}

.ts-social-link:hover {
    background: #cd8a78;
    border-color: #cd8a78;
    color: #2a2520;
    transform: translateY(-2px);
}

@media (max-width: 800px) {
    .ts-footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .ts-footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   8. BUTTONS, demo-aligned (override theme buttons.css for visual polish)
   ========================================================================== */

.ts-btn {
    font-family: var(--ts-font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 0.95rem 1.6rem;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.ts-btn-primary {
    background: var(--ts-accent-hover);
    color: #ffffff;
    border-color: var(--ts-accent-hover);
    box-shadow: 0 4px 14px rgba(192, 128, 112, 0.18);
}

.ts-btn-primary:hover {
    background: #cd8a78;
    border-color: #cd8a78;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(192, 128, 112, 0.25);
}

.ts-btn-secondary {
    background: var(--ts-black);
    color: var(--ts-white);
    border-color: rgba(42, 37, 32, 0.15);
}

.ts-btn-secondary:hover {
    border-color: var(--ts-accent);
    color: var(--ts-accent);
}

/* Inside taupe total panel, secondary becomes a centered underline link */
.ts-calc-total .ts-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: none;
    box-shadow: none;
    text-decoration: underline;
    font-size: 13px;
    padding: 4px;
    width: auto;
    align-self: center;
    opacity: 0.85;
}

.ts-calc-total .ts-btn-secondary:hover {
    background: transparent;
    border: none;
    color: #ffffff;
    opacity: 1;
}

/* ==========================================================================
   9. QUOTE CTA section (between safety and FAQ)
   ========================================================================== */

.ts-quote-cta {
    background: var(--ts-dark-secondary);
    padding: 2.5rem 0;
}

.ts-quote-cta-container {
    max-width: var(--ts-max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.ts-quote-cta-eyebrow {
    font-family: var(--ts-font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ts-accent);
    margin-bottom: 0.4rem;
    display: block;
}

.ts-quote-cta-title {
    font-family: var(--ts-font-display);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    color: var(--ts-white);
    margin: 0 0 0.4rem;
    letter-spacing: -0.015em;
}

.ts-quote-cta-subtitle {
    font-size: 0.95rem;
    color: var(--ts-silver);
    margin: 0;
    max-width: 60ch;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .ts-quote-cta-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .ts-quote-cta-action .ts-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   10. CRITICAL FIXES, post-rewrite issues
   ========================================================================== */

/* Mobile nav, hidden on desktop, shown only when JS toggles .is-open */
.ts-mobile-nav,
.ts-mobile-menu {
    display: none;
}

@media (max-width: 900px) {
    .ts-mobile-nav.is-open,
    .ts-mobile-nav.is-active {
        display: block;
        position: fixed;
        top: var(--ts-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(42, 37, 32, 0.97);
        z-index: 10000;
        padding: 2rem;
        backdrop-filter: blur(20px);
    }
    .ts-mobile-nav.is-open .ts-mobile-menu,
    .ts-mobile-nav.is-active .ts-mobile-menu {
        display: flex;
        flex-direction: column;
        list-style: none;
        gap: 1rem;
        padding: 0;
        margin: 0;
    }
    .ts-mobile-menu a {
        color: #ffffff;
        font-family: var(--ts-font-display);
        font-size: 1.4rem;
        font-weight: 600;
        text-decoration: none;
    }
}

/* Force footer bg sky-blue even if other rules try to override */
.ts-footer,
footer.ts-footer {
    background: #2a2520 !important;
}

/* Ensure piece cards always render, never accidentally hidden */
.ts-piece {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ts-calc-pieces {
    display: flex !important;
    flex-direction: column !important;
}

/* Mobile menu toggle button (hamburger, visible only on mobile) */
.ts-menu-toggle,
.ts-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--ts-glass-border);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0;
}

.ts-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ts-white);
    border-radius: 1px;
}

@media (max-width: 900px) {
    .ts-menu-toggle,
    .ts-mobile-toggle {
        display: inline-flex;
    }
}