/*
 Theme Name: TSG Solutions
 Theme URI: https://thesynergygroup.ch
 Author: The Synergy Group AG
 Author URI: https://thesynergygroup.ch
 Description: AI-powered technology solutions company theme. Swiss-quality, factory-built.
 Version: 1.0.0
 Requires at least: 6.0
 Tested up to: 6.9
 Requires PHP: 8.0
 License: Proprietary
 License URI: https://thesynergygroup.ch/license
 Text Domain: tsg-solutions
 Template: astra

 The Synergy Group AG — AI-Powered Technology Solutions. Swiss Quality.
 CHE-497.254.492 | Zumikon, Switzerland
*/

/* ── CSS Variables (TSG Brand — from brand-guidelines.json) ──────────────── */
:root {
    /* Primary palette (dark-first, Stripe/Linear/Vercel inspired) */
    --tsg-dark: #0a1628;
    --tsg-dark-800: #0f1f35;
    --tsg-navy: #152847;
    --tsg-blue: #1c3459;
    --tsg-blue-500: #24426e;
    --tsg-white: #ffffff;
    --tsg-off-white: #f0f4f9;
    --tsg-light-gray: #dae5f2;
    --tsg-gray: #94a3b8;
    --tsg-dark-gray: #475569;

    /* Accent — Electric Blue */
    --tsg-accent: #3b82f6;
    --tsg-accent-hover: #2563eb;
    --tsg-accent-pressed: #1d4ed8;
    --tsg-accent-light: #60a5fa;
    --tsg-accent-muted: rgba(59, 130, 246, 0.125);
    --tsg-accent-glow: rgba(59, 130, 246, 0.25);

    /* Product colours (three pillars) */
    --tsg-factory: #f59e0b;    /* Amber — The Factory */
    --tsg-stargate: #06b6d4;   /* Cyan — StarGate */
    --tsg-agentic: #8b5cf6;    /* Violet — Agentic Starter */

    /* Functional */
    --tsg-success: #22c55e;
    --tsg-warning: #f59e0b;
    --tsg-error: #ef4444;
    --tsg-info: #3b82f6;

    /* Text */
    --tsg-text-primary: #f8fafc;
    --tsg-text-secondary: #94a3b8;
    --tsg-text-muted: #64748b;
    --tsg-text-dark: #0f172a;
    --tsg-text-dark-secondary: #475569;

    /* Typography */
    --tsg-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tsg-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --tsg-font-heading: 'Inter', sans-serif;

    /* Spacing */
    --tsg-section-gap: 6rem;
    --tsg-content-max: 1280px;
    --tsg-radius: 8px;
    --tsg-radius-lg: 16px;
    --tsg-unit: 4px;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
body {
    font-family: var(--tsg-font-body);
    color: var(--tsg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tsg-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tsg-dark);
}

/* ── Hero Section ────────────────────────────────────────────────────────── */
.tsg-hero {
    background: linear-gradient(135deg, var(--tsg-dark) 0%, var(--tsg-navy) 50%, var(--tsg-blue) 100%);
    color: var(--tsg-white);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.tsg-hero--with-image {
    background-blend-mode: overlay;
    background-color: rgba(10, 22, 40, 0.7);
    background-position: center center;
}

.tsg-hero h1 {
    color: var(--tsg-white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.tsg-hero .tsg-accent-text {
    color: var(--tsg-accent-light);
}

.tsg-hero p {
    font-size: 1.25rem;
    color: var(--tsg-gray);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ── Stats Bar ───────────────────────────────────────────────────────────── */
.tsg-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: var(--tsg-content-max);
    margin: -3rem auto 0;
    padding: 2rem;
    background: var(--tsg-white);
    border-radius: var(--tsg-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

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

.tsg-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--tsg-accent);
    font-family: var(--tsg-font-mono);
    display: block;
}

.tsg-stat-label {
    font-size: 0.875rem;
    color: var(--tsg-dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Section Layout ──────────────────────────────────────────────────────── */
.tsg-section {
    padding: var(--tsg-section-gap) 2rem;
    max-width: var(--tsg-content-max);
    margin: 0 auto;
}

.tsg-section-dark {
    background: var(--tsg-dark);
    color: var(--tsg-white);
    max-width: none;
}

.tsg-section-dark h2,
.tsg-section-dark h3 {
    color: var(--tsg-white);
}

.tsg-section-alt {
    background: var(--tsg-off-white);
    max-width: none;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.tsg-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tsg-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid var(--tsg-light-gray);
    border-radius: 4px;
    padding: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(15, 23, 42, 0.05);
}
.tsg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #B08D57 50%, transparent 100%);
    opacity: 0.35;
    transition: opacity 0.25s ease;
}
.tsg-card:hover {
    transform: translateY(-3px);
    border-color: rgba(176, 141, 87, 0.35);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 20px 40px rgba(15, 23, 42, 0.1);
}
.tsg-card:hover::before {
    opacity: 0.8;
}

.tsg-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--tsg-dark);
}

.tsg-card p {
    color: var(--tsg-dark-gray);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ── Premium Card Variant (Solution sub-pages) ──────────────────────────── */
.tsg-card-premium {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(176, 141, 87, 0.2);
    border-radius: 4px;
    padding: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(15, 23, 42, 0.05);
}
.tsg-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #B08D57 50%, transparent 100%);
    opacity: 0.7;
}
.tsg-card-premium:hover {
    transform: translateY(-3px);
    border-color: rgba(176, 141, 87, 0.5);
    box-shadow: 0 4px 12px rgba(176, 141, 87, 0.1), 0 20px 40px rgba(15, 23, 42, 0.1);
}
.tsg-card-premium:hover::before {
    opacity: 1;
}
.tsg-card-premium h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--tsg-dark);
    font-weight: 700;
}
.tsg-card-premium p {
    color: var(--tsg-dark-gray);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Premium stat cards (metrics row on solution pages) */
.tsg-stat-premium {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(176, 141, 87, 0.15);
    border-radius: 4px;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.tsg-stat-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #B08D57;
    opacity: 0.6;
}
.tsg-stat-premium:hover {
    transform: translateY(-2px);
}
.tsg-stat-premium strong {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #B08D57;
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.tsg-stat-premium span {
    font-size: 0.82rem;
    color: var(--tsg-dark-gray);
    letter-spacing: 0.02em;
}

/* Premium hero callout (top description card on solution pages) */
.tsg-callout-premium {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(176, 141, 87, 0.2);
    border-left: 3px solid #B08D57;
    border-radius: 4px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.tsg-callout-premium p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--tsg-dark-gray);
    margin: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.tsg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--tsg-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.tsg-btn-primary {
    background: var(--tsg-accent);
    color: var(--tsg-white);
}

.tsg-btn-primary:hover {
    background: var(--tsg-accent-light);
    transform: translateY(-1px);
}

.tsg-btn-outline {
    background: transparent;
    color: var(--tsg-accent);
    border: 2px solid var(--tsg-accent);
}

.tsg-btn-outline:hover {
    background: var(--tsg-accent);
    color: var(--tsg-white);
}

/* ── Code/Factory Section ────────────────────────────────────────────────── */
.tsg-code-block {
    background: var(--tsg-dark);
    color: var(--tsg-accent-light);
    font-family: var(--tsg-font-mono);
    padding: 2rem;
    border-radius: var(--tsg-radius-lg);
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

/* ── Trust Centre ────────────────────────────────────────────────────────── */
.tsg-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--tsg-off-white);
    border: 1px solid var(--tsg-light-gray);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tsg-dark-gray);
}

.tsg-trust-badge .dashicons {
    color: var(--tsg-success);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tsg-hero {
        padding: 5rem 1.5rem;
    }

    .tsg-stats {
        grid-template-columns: repeat(2, 1fr);
        margin: -2rem 1rem 0;
    }

    .tsg-section {
        padding: 3rem 1.5rem;
    }

    .tsg-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tsg-stats {
        grid-template-columns: 1fr;
    }

    .tsg-hero h1 {
        font-size: 2rem;
    }
}

/* ── Brand Ornaments: Brass Plate & Wax Seal ─────────────────────────────── */
/* Restraint principle: at most 1 brass plate + 1 wax seal per visible viewport. */

/* ── Premium Legal Document Styling ───────────────────────────────────── */
.tsg-legal-doc {
    color: var(--tsg-dark-gray);
    line-height: 1.75;
    font-size: 0.95rem;
}
.tsg-legal-doc h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--tsg-dark);
    margin: 3.5rem 0 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(176, 141, 87, 0.25);
    position: relative;
    letter-spacing: 0.01em;
}
.tsg-legal-doc h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #B08D57;
}
.tsg-legal-doc h2:first-child,
.tsg-legal-doc > div:first-child + h2 {
    margin-top: 0;
}
.tsg-legal-doc h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--tsg-dark);
    margin: 3rem 0 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(176, 141, 87, 0.2);
    position: relative;
    letter-spacing: 0.01em;
}
.tsg-legal-doc h3::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 45px;
    height: 2px;
    background: #B08D57;
}
.tsg-legal-doc h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tsg-dark);
    margin: 2rem 0 0.6rem;
    letter-spacing: 0.01em;
}
.tsg-legal-doc p {
    margin: 0 0 1.25rem;
}
.tsg-legal-doc ul, .tsg-legal-doc ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}
.tsg-legal-doc li {
    margin-bottom: 0.6rem;
}
.tsg-legal-doc strong {
    color: var(--tsg-dark);
    font-weight: 600;
}
.tsg-legal-doc a {
    color: #B08D57;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(176, 141, 87, 0.3);
    transition: border-color 0.2s ease;
}
.tsg-legal-doc a:hover {
    border-color: #B08D57;
}
.tsg-legal-doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.tsg-legal-doc th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid rgba(176, 141, 87, 0.3);
    font-family: var(--tsg-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B08D57;
    font-weight: 600;
}
.tsg-legal-doc td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--tsg-light-gray);
    vertical-align: top;
}
.tsg-legal-doc tr:last-child td {
    border-bottom: none;
}
/* The header block inside legal content (effective date etc) */
/* Override inline styles from the HTML with !important */
.tsg-legal-doc > div:first-child {
    background: linear-gradient(180deg, var(--tsg-dark) 0%, var(--tsg-dark-800) 100%) !important;
    color: var(--tsg-gray) !important;
    padding: 1.75rem 2rem !important;
    border-radius: 4px !important;
    border: 1px solid rgba(176, 141, 87, 0.18) !important;
    border-left: 3px solid #B08D57 !important;
    margin-bottom: 2.5rem !important;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem !important;
}
.tsg-legal-doc > div:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #B08D57 50%, transparent 100%);
}
.tsg-legal-doc > div:first-child strong {
    color: #B08D57 !important;
}
.tsg-legal-doc > div:first-child br + strong {
    display: inline;
}
.tsg-legal-doc hr {
    border: none;
    border-top: 1px solid rgba(176, 141, 87, 0.18);
    margin: 2.5rem 0;
}
@media (max-width: 600px) {
    .tsg-legal-doc h2 { font-size: 1.6rem; }
    .tsg-legal-doc { font-size: 0.9rem; }
}

/* Team LinkedIn link */
.tsg-team-linkedin {
    display: inline-block;
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--tsg-light-gray);
    border-radius: 4px;
    transition: all 0.2s ease;
}
.tsg-team-linkedin:hover {
    border-color: currentColor;
    transform: translateY(-1px);
}

/* Atelier mark — small centred letterhead crest above hero H1 */
.tsg-atelier-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 0 auto 1.75rem;
    max-width: 640px;
}
.tsg-atelier-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #B08D57 50%, transparent 100%);
    max-width: 180px;
}
.tsg-atelier-text {
    font-family: var(--tsg-font-mono);
    font-size: 0.7rem;
    color: #B08D57;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 500;
}
@media (max-width: 600px) {
    .tsg-atelier-mark { gap: 0.75rem; }
    .tsg-atelier-text { font-size: 0.6rem; letter-spacing: 0.2em; }
    .tsg-atelier-line { max-width: 60px; }
}

/* Brass plate — atelier maker's mark, used on dark hero/footer or cream sections */
.tsg-brass-plate {
    display: block;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.tsg-brass-plate--hero-corner {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 240px;
    z-index: 2;
    opacity: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    border-radius: 6px;
}
.tsg-brass-plate--footer {
    width: 280px;
    margin: 1.5rem 0;
}
.tsg-brass-plate--certified {
    width: 360px;
    max-width: 100%;
    margin: 2rem auto;
}

/* Wax seal — burgundy promise/verification stamp, only on cream sections */
.tsg-wax-seal {
    display: inline-block;
    height: auto;
    transform: rotate(-3deg);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}
.tsg-wax-seal--card-corner {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 90px;
    z-index: 2;
}
.tsg-wax-seal--inline {
    width: 110px;
    vertical-align: middle;
    margin: 0 0.5rem;
}
.tsg-wax-seal--small {
    width: 64px;
}
.tsg-wax-seal--large {
    width: 240px;
    display: block;
    margin: 0 auto;
}

/* Cards that host a corner ornament must be position:relative */
.tsg-card.has-ornament {
    position: relative;
}

/* ── Premium Tiles (Three Pillars + 7 Products) ──────────────────────────── */
/* Used instead of childish emoji icons. Classical Swiss craftsmanship aesthetic. */

.tsg-pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--tsg-content-max);
    margin: 0 auto;
}
.tsg-pillar {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid var(--tsg-light-gray);
    border-top: 3px solid var(--tsg-accent);
    border-radius: 4px;
    padding: 3rem 2.5rem 2.5rem;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04), 0 12px 24px rgba(15,23,42,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}
.tsg-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(15,23,42,0.08), 0 24px 48px rgba(15,23,42,0.12);
}
.tsg-pillar--factory  { border-top-color: #B08D57; } /* Brass */
.tsg-pillar--stargate { border-top-color: #475569; } /* Slate */
.tsg-pillar--agentic  { border-top-color: #2A1810; } /* Walnut */

.tsg-pillar-numeral {
    font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1;
    color: #B08D57; /* brass */
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    display: block;
    border-bottom: 1px solid var(--tsg-light-gray);
    padding-bottom: 1rem;
}
.tsg-pillar h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--tsg-dark);
    letter-spacing: -0.01em;
}
.tsg-pillar p {
    color: var(--tsg-dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.tsg-pillar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #B08D57;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tsg-light-gray);
    margin-top: 1rem;
    width: 100%;
}
.tsg-pillar-cta::after { content: '→'; font-size: 0.95rem; }
.tsg-pillar-cta:hover { color: var(--tsg-dark); }

/* Premium product tiles (dark variant) */
.tsg-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.tsg-product-tile {
    position: relative;
    background: linear-gradient(180deg, var(--tsg-navy) 0%, var(--tsg-dark-800) 100%);
    border: 1px solid rgba(176, 141, 87, 0.18);
    border-radius: 4px;
    padding: 2rem 2rem 1.5rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.tsg-product-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #B08D57 50%, transparent 100%);
    opacity: 0.4;
    transition: opacity 0.25s ease;
}
.tsg-product-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(176, 141, 87, 0.45);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.tsg-product-tile:hover::before { opacity: 1; }
.tsg-product-marker {
    font-family: var(--tsg-font-mono);
    font-size: 0.7rem;
    color: #B08D57;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    display: block;
}
.tsg-product-tile h3 {
    color: #fff;
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.tsg-product-domain {
    font-family: var(--tsg-font-mono);
    font-size: 0.78rem;
    color: rgba(176, 141, 87, 0.85);
    margin-bottom: 0.75rem;
    display: block;
}
.tsg-product-tile p {
    color: var(--tsg-gray);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.tsg-product-stat {
    font-family: var(--tsg-font-mono);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    border-top: 1px solid rgba(176, 141, 87, 0.18);
    padding-top: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tsg-product-stat strong { color: #B08D57; font-weight: 700; }
.tsg-product-tile .tsg-product-arrow {
    color: #B08D57;
    transition: transform 0.2s ease;
    font-size: 1.1rem;
}
.tsg-product-tile:hover .tsg-product-arrow { transform: translateX(4px); }

@media (max-width: 900px) {
    .tsg-pillar-grid, .tsg-product-grid { grid-template-columns: 1fr; }
}

/* ── Premium Value Tiles (Why Companies Choose TSG) ──────────────────────── */
.tsg-value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    max-width: var(--tsg-content-max);
    margin: 0 auto;
}
.tsg-value {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid var(--tsg-light-gray);
    border-radius: 4px;
    padding: 2.5rem 1.75rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04), 0 12px 24px rgba(15,23,42,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}
.tsg-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #B08D57 50%, transparent 100%);
}
.tsg-value:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(15,23,42,0.08), 0 24px 48px rgba(15,23,42,0.12);
}
.tsg-value-figure {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.75rem;
    font-weight: 500;
    line-height: 1;
    color: #B08D57;
    margin: 0.5rem 0 1rem;
    letter-spacing: -0.01em;
    display: block;
}
.tsg-value-figure--small {
    font-size: 2.75rem;
}
.tsg-value-divider {
    width: 32px;
    height: 1px;
    background: var(--tsg-light-gray);
    margin: 0 auto 1rem;
}
.tsg-value h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--tsg-dark);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.tsg-value p {
    color: var(--tsg-dark-gray);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}
.tsg-value-label {
    font-family: var(--tsg-font-mono);
    font-size: 0.65rem;
    color: #B08D57;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 1rem;
    display: block;
    border-top: 1px solid var(--tsg-light-gray);
    padding-top: 0.85rem;
}

@media (max-width: 1000px) {
    .tsg-value-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .tsg-value-grid { grid-template-columns: 1fr; }
}

/* ── Premium Footer ──────────────────────────────────────────────────────── */
.tsg-footer {
    background: linear-gradient(180deg, #0a1628 0%, #060f1c 100%);
    color: var(--tsg-gray);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid rgba(176, 141, 87, 0.18);
    position: relative;
}
.tsg-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #B08D57 50%, transparent 100%);
}
.tsg-footer-inner {
    max-width: var(--tsg-content-max);
    margin: 0 auto;
}
.tsg-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.tsg-footer-brand {
    display: flex;
    flex-direction: column;
}
.tsg-footer-logo {
    width: 360px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
}
.tsg-footer-tagline {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--tsg-gray);
    margin: 0 0 1rem;
    max-width: 320px;
}
.tsg-footer-che {
    font-family: var(--tsg-font-mono);
    font-size: 0.72rem;
    color: #B08D57;
    letter-spacing: 0.18em;
    margin: 0 0 2rem;
    text-transform: uppercase;
}
.tsg-footer-trust {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(176, 141, 87, 0.18);
    padding-top: 1.5rem;
    max-width: 320px;
}
.tsg-trust-mark {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.tsg-trust-mark-label {
    font-family: var(--tsg-font-mono);
    font-size: 0.62rem;
    color: rgba(176, 141, 87, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.tsg-trust-mark-value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.tsg-footer-col {}
.tsg-footer-heading {
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(176, 141, 87, 0.18);
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-weight: 600;
}
.tsg-footer-numeral {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #B08D57;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1;
}
.tsg-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tsg-footer-list li {
    margin-bottom: 0.85rem;
}
.tsg-footer-list a {
    color: var(--tsg-gray);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 400;
    transition: color 0.2s ease, padding-left 0.25s ease;
    display: inline-block;
    position: relative;
}
.tsg-footer-list a::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    width: 8px;
    height: 1px;
    background: #B08D57;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.tsg-footer-list a:hover {
    color: #fff;
    padding-left: 14px;
}
.tsg-footer-list a:hover::before {
    transform: scaleX(1);
}

.tsg-footer-plaque {
    text-align: center;
    margin: 3.5rem 0 2.5rem;
    padding: 0;
}
.tsg-footer-plaque img {
    width: 620px;
    max-width: 85%;
    height: auto;
    display: inline-block;
}
.tsg-footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(176, 141, 87, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.tsg-footer-legal {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .tsg-footer-plaque img { width: 90%; }
    .tsg-footer-bottom { flex-direction: column; align-items: center; text-align: center; }
    .tsg-footer-legal { justify-content: center; }
}
.tsg-footer-copy {
    font-size: 0.78rem;
    margin: 0;
    color: var(--tsg-dark-gray);
    letter-spacing: 0.02em;
}
.tsg-footer-legal {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.tsg-footer-legal a {
    color: var(--tsg-dark-gray);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.2s ease;
    font-weight: 500;
}
.tsg-footer-legal a:hover { color: #B08D57; }

@media (max-width: 1000px) {
    .tsg-footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .tsg-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .tsg-footer { padding: 4rem 1.5rem 2rem; }
    .tsg-footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .tsg-footer-logo { height: 80px; }
    .tsg-footer-bottom { flex-direction: column; align-items: flex-start; }
    .tsg-footer-legal { gap: 1rem; }
}


@media (max-width: 768px) {
    .tsg-brass-plate--hero-corner { width: 160px; bottom: 1rem; right: 1rem; }
    .tsg-wax-seal--card-corner { width: 64px; }
    .tsg-wax-seal--large { width: 180px; }
    .tsg-brass-plate--certified { width: 280px; }
    .tsg-brass-plate--footer { width: 220px; }
}

/* ── Booking Calendar & Wizard ─────────────────────────────────────────── */
.tsg-booking-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}
.tsg-step-dot {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--tsg-off-white); color: var(--tsg-dark-gray);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s;
    border: 1px solid var(--tsg-light-gray);
}
.tsg-step-dot.active {
    background: linear-gradient(135deg, #B08D57, #D4AF37);
    color: #fff;
    border-color: #B08D57;
    box-shadow: 0 2px 8px rgba(176, 141, 87, 0.3);
}
.tsg-step-dot.done {
    background: #B08D57;
    color: #fff;
    border-color: #B08D57;
}
.tsg-booking-step {
    min-height: 200px;
}
.tsg-booking-heading {
    text-align: center;
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    color: var(--tsg-dark);
}
.tsg-booking-subtitle {
    text-align: center;
    color: var(--tsg-dark-gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.tsg-duration-btn {
    display: flex; flex-direction: column; align-items: center;
    padding: 28px 44px; border: 2px solid var(--tsg-light-gray);
    border-radius: var(--tsg-radius-lg); background: #fff;
    cursor: pointer; transition: all 0.25s; min-width: 170px;
}
.tsg-duration-btn:hover, .tsg-duration-btn.selected {
    border-color: #B08D57;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(176, 141, 87, 0.15);
}
.tsg-duration-btn.selected {
    border-width: 2px;
    background: rgba(176, 141, 87, 0.06);
    box-shadow: 0 4px 16px rgba(176, 141, 87, 0.25);
}
.tsg-duration-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.5rem; font-weight: 600; color: #B08D57; line-height: 1;
}
.tsg-duration-label {
    font-size: 0.85rem; color: var(--tsg-dark-gray); margin-top: 2px;
}
.tsg-duration-desc {
    font-size: 0.8rem; margin-top: 10px; color: var(--tsg-accent); font-weight: 500;
}
.tsg-back-btn {
    display: block; margin: 24px auto 0; padding: 8px 24px;
    background: none; border: 1px solid var(--tsg-light-gray);
    border-radius: var(--tsg-radius); color: var(--tsg-dark-gray);
    cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
}
.tsg-back-btn:hover { border-color: #B08D57; color: #B08D57; }
.tsg-booking-submit {
    display: block; width: 100%; padding: 14px; border: none;
    background: linear-gradient(135deg, #B08D57, #D4AF37);
    color: #fff; font-size: 1.1rem; font-weight: 700;
    border-radius: var(--tsg-radius); cursor: pointer; transition: all 0.25s;
}
.tsg-booking-submit:hover {
    box-shadow: 0 4px 16px rgba(176, 141, 87, 0.35);
    transform: translateY(-1px);
}
.tsg-booking-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Calendar grid */
.tsg-cal-loading { text-align: center; padding: 40px; color: var(--tsg-dark-gray); }
.tsg-cal-nav {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.tsg-cal-nav button {
    background: none; border: 1px solid var(--tsg-light-gray);
    border-radius: var(--tsg-radius); padding: 6px 16px;
    cursor: pointer; color: var(--tsg-dark); font-size: 0.9rem; transition: all 0.2s;
}
.tsg-cal-nav button:hover { border-color: #B08D57; color: #B08D57; }
.tsg-cal-month {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600; font-size: 1.2rem; color: var(--tsg-dark);
}
.tsg-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center;
}
.tsg-cal-head {
    font-size: 0.75rem; font-weight: 700; color: var(--tsg-dark-gray);
    padding: 8px 0; text-transform: uppercase; letter-spacing: 0.05em;
}
.tsg-cal-day {
    padding: 10px 0; border-radius: var(--tsg-radius); font-size: 0.9rem;
    color: var(--tsg-light-gray); cursor: default;
}
.tsg-cal-day.available {
    color: var(--tsg-dark); background: rgba(176, 141, 87, 0.1);
    cursor: pointer; font-weight: 600;
}
.tsg-cal-day.available:hover {
    background: linear-gradient(135deg, #B08D57, #D4AF37); color: #fff;
}
.tsg-cal-day.selected {
    background: linear-gradient(135deg, #B08D57, #D4AF37); color: #fff;
}
.tsg-cal-day.today {
    box-shadow: inset 0 0 0 2px var(--tsg-accent);
}

/* Time slots */
.tsg-slots-grid {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.tsg-slot-btn {
    padding: 10px 22px; border: 1px solid var(--tsg-light-gray);
    border-radius: var(--tsg-radius); background: #fff;
    cursor: pointer; font-size: 0.95rem; font-weight: 600;
    transition: all 0.2s; color: var(--tsg-dark);
}
.tsg-slot-btn:hover {
    border-color: #B08D57; color: #B08D57; transform: translateY(-1px);
}
.tsg-slot-btn.selected {
    background: linear-gradient(135deg, #B08D57, #D4AF37);
    color: #fff; border-color: #B08D57;
}

/* Form inputs */
.tsg-form-group {
    margin-bottom: 1rem;
}
.tsg-form-group label {
    font-weight: 600; display: block; margin-bottom: 4px; font-size: 0.9rem;
    color: var(--tsg-dark);
}
.tsg-form-input {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--tsg-light-gray);
    border-radius: var(--tsg-radius);
    font-family: var(--tsg-font-body); font-size: 1rem;
    color: var(--tsg-dark); background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.tsg-form-input:focus {
    outline: none; border-color: #B08D57;
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.12);
}

@media (max-width: 768px) {
    .tsg-duration-btn { min-width: 140px; padding: 20px 30px; }
    .tsg-booking-heading { font-size: 1.5rem; }
}

