/*
Theme Name: TopVelocity VIP
Theme URI: https://topvelocity.vip
Author: TopVelocity
Author URI: https://topvelocity.vip
Description: TopVelocity VIP (topvelocity.vip) — all-sports fork of the TopVelocity theme v2.3.8: same design system, golf sales front page, no baseball defaults. Version line diverged (3.x) from the .org theme (2.x).
Version: 3.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: topvelocity
Tags: one-column, two-columns, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, theme-options, blog
*/

/* ==========================================================================
   CSS Variables — v2.3.0 Design System
   Only these colors exist on the site. No hardcoded hex in any template.
   ========================================================================== */
:root {
    /* RED — brand, action, emphasis */
    --tv-primary:       #c41e3a;
    --tv-primary-dark:  #8b1525;
    --tv-primary-light: #fde8eb;

    /* BLACK — headers, dark sections, hero surfaces */
    --tv-secondary:      #0a0a0a;
    --tv-secondary-dark: #000000;

    /* Legacy alias (old templates still call this "accent") — now
       deliberately mapped to red so nothing renders orange. Will be
       removed in a future release once all references are cleaned. */
    --tv-accent:      #c41e3a;
    --tv-accent-dark: #8b1525;

    /* TEXT */
    --tv-text:         #111827;
    --tv-text-light:   #4b5563;
    --tv-text-lighter: #6b7280;

    /* SURFACES */
    --tv-bg:      #ffffff;
    --tv-white:   #ffffff;
    --tv-surface: #f8fafc;
    --tv-border:  #e5e7eb;

    /* STATUS (semantic — used sparingly) */
    --tv-success: #059669;
    --tv-error:   #dc2626;
    --tv-warning: #b45309;

    /* GOLD — accent only. Awards, ratings, achievement markers.
       Never for decoration, never for buttons, never for body text. */
    --tv-gold: #fbbf24;

    /* Geometry / motion / typography */
    --tv-radius:    12px;
    --tv-radius-sm: 8px;
    --tv-radius-lg: 16px;
    --tv-shadow:    0 1px 3px rgba(0, 0, 0, 0.04);
    --tv-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --tv-transition: all 0.18s ease;
    --tv-container: 1200px;

    /* Single type family across the site. Inter where available, falls
       back to the platform system font. Load once in header.php. */
    --tv-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --tv-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--tv-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--tv-text);
    background: var(--tv-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--tv-primary);
    text-decoration: none;
    transition: var(--tv-transition);
}

a:hover {
    color: var(--tv-primary-dark);
}

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

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tv-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.tv-container {
    max-width: var(--tv-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* v2.3.3 — Site header goes edge-to-edge. The logo sits at the
   far-left of the viewport, nav items extend to the far-right.
   Other .tv-container uses (inside sections, footer, etc.) keep
   their max-width. */
.site-header > .tv-container {
    max-width: none;
    padding: 0 32px;
}
@media (max-width: 640px) {
    .site-header > .tv-container { padding: 0 16px; }
}

.tv-container-narrow {
    max-width: 800px;
}

.tv-container-wide {
    max-width: 1400px;
}

.tv-section {
    padding: 80px 0;
}

.tv-section-sm {
    padding: 40px 0;
}

.tv-section-lg {
    padding: 120px 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: var(--tv-secondary);
    border-bottom: 3px solid var(--tv-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.custom-logo {
    max-height: 70px;
    width: auto;
}

.custom-logo-link img {
    max-height: 70px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--tv-white);
}

.site-title a {
    color: inherit;
}

.site-title a:hover {
    color: var(--tv-primary);
}

.site-description {
    display: none;
}

/* Primary Navigation */
.primary-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--tv-white);
    font-weight: 500;
    border-radius: var(--tv-radius-sm);
    transition: var(--tv-transition);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    background: var(--tv-primary);
    color: var(--tv-white);
}

/* Dropdown menus */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--tv-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--tv-radius-sm);
    box-shadow: var(--tv-shadow-lg);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--tv-transition);
    list-style: none;
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu a {
    padding: 10px 20px;
    border-radius: 0;
}

.primary-menu .sub-menu a:hover {
    background: var(--tv-primary);
    color: var(--tv-white);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    color: var(--tv-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.tv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--tv-primary);
    color: var(--tv-white);
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--tv-primary);
    border-radius: var(--tv-radius-sm);
    cursor: pointer;
    transition: var(--tv-transition);
    text-decoration: none;
}

.tv-btn:hover {
    background: var(--tv-primary-dark);
    border-color: var(--tv-primary-dark);
    color: var(--tv-white);
}

.tv-btn-secondary {
    background: var(--tv-secondary);
    border-color: var(--tv-secondary);
}

.tv-btn-secondary:hover {
    background: var(--tv-secondary-dark);
    border-color: var(--tv-secondary-dark);
}

.tv-btn-outline {
    background: transparent;
    color: var(--tv-primary);
}

.tv-btn-outline:hover {
    background: var(--tv-primary);
    color: var(--tv-white);
}

.tv-btn-white {
    background: var(--tv-white);
    color: var(--tv-primary);
    border-color: var(--tv-white);
}

.tv-btn-white:hover {
    background: var(--tv-bg);
    border-color: var(--tv-bg);
}

.tv-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.tv-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.tv-btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.tv-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #c41e3a 100%);
    overflow: hidden;
}

.tv-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.tv-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.tv-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--tv-white);
    padding: 60px 20px;
    max-width: 800px;
}

.tv-hero-content h1 {
    font-size: 3.5rem;
    color: var(--tv-white);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tv-hero-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.tv-hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page hero (smaller) */
.tv-page-hero {
    min-height: 300px;
}

.tv-page-hero .tv-hero-content h1 {
    font-size: 2.5rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.tv-card {
    background: var(--tv-white);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius);
    padding: 30px;
    transition: var(--tv-transition);
}

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

.tv-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tv-card-link:hover {
    transform: translateY(-5px);
}

.tv-card-image {
    margin: -30px -30px 25px -30px;
    height: 200px;
    background: linear-gradient(135deg, var(--tv-primary), var(--tv-secondary));
    background-size: cover;
    background-position: center;
    border-radius: var(--tv-radius) var(--tv-radius) 0 0;
}

.tv-card-icon {
    width: 60px;
    height: 60px;
    background: var(--tv-primary-light);
    border-radius: var(--tv-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.tv-card h3 {
    margin-bottom: 10px;
}

.tv-card p {
    color: var(--tv-text-light);
    margin-bottom: 0;
}

.tv-card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tv-border);
}

/* Card Grid */
.tv-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

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

.tv-card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tv-card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.tv-features {
    background: var(--tv-white);
}

.tv-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.tv-section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.tv-section-header p {
    color: var(--tv-text-light);
    font-size: 1.125rem;
}

.tv-feature-card {
    text-align: center;
    padding: 40px 30px;
}

.tv-feature-card .tv-card-icon {
    margin: 0 auto 20px auto;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.tv-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #c41e3a 100%);
    color: var(--tv-white);
    text-align: center;
}

.tv-cta h2 {
    color: var(--tv-white);
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.tv-cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.tv-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.tv-stat-item {
    padding: 30px;
}

.tv-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--tv-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.tv-stat-label {
    font-size: 1rem;
    color: var(--tv-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.tv-testimonial {
    background: var(--tv-white);
    border-radius: var(--tv-radius);
    padding: 40px;
    border: 1px solid var(--tv-border);
}

.tv-testimonial-content {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 25px;
    color: var(--tv-text);
    line-height: 1.7;
}

.tv-testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--tv-primary-light);
    line-height: 0;
    display: block;
    margin-bottom: -10px;
}

.tv-testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tv-testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--tv-primary-light);
}

.tv-testimonial-name {
    font-weight: 600;
    margin: 0;
}

.tv-testimonial-role {
    color: var(--tv-text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* ==========================================================================
   Blog / Posts
   ========================================================================== */
.tv-post-card .tv-card-image {
    height: 220px;
}

.tv-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.875rem;
    color: var(--tv-text-light);
    margin-bottom: 15px;
}

.tv-post-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--tv-primary-light);
    color: var(--tv-primary-dark);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tv-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--tv-primary);
    margin-top: 15px;
}

.tv-read-more:hover {
    gap: 10px;
}

/* Single Post */
.tv-single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.tv-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.tv-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tv-post-featured-image {
    margin: 0 -100px 40px -100px;
    border-radius: var(--tv-radius);
    overflow: hidden;
}

.tv-post-featured-image img {
    width: 100%;
    height: auto;
}

.tv-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.tv-post-content h2 {
    margin-top: 40px;
}

.tv-post-content h3 {
    margin-top: 30px;
}

.tv-post-content p {
    margin-bottom: 1.5rem;
}

.tv-post-content img {
    border-radius: var(--tv-radius-sm);
    margin: 30px 0;
}

.tv-post-content blockquote {
    margin: 30px 0;
    padding: 30px 40px;
    background: var(--tv-bg);
    border-left: 4px solid var(--tv-primary);
    border-radius: 0 var(--tv-radius-sm) var(--tv-radius-sm) 0;
    font-style: italic;
    font-size: 1.25rem;
}

.tv-post-content ul, .tv-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.tv-post-content li {
    margin-bottom: 10px;
}

/* Post Navigation */
.tv-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--tv-border);
}

.tv-post-nav-link {
    max-width: 45%;
}

.tv-post-nav-label {
    font-size: 0.875rem;
    color: var(--tv-text-light);
    margin-bottom: 5px;
}

.tv-post-nav-title {
    font-weight: 600;
    color: var(--tv-text);
}

.tv-post-nav-link:hover .tv-post-nav-title {
    color: var(--tv-primary);
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.tv-page-content {
    padding: 60px 0;
}

.tv-page-content .tv-container {
    max-width: 900px;
}

/* Full Width Template */
.page-template-full-width .tv-page-content .tv-container {
    max-width: var(--tv-container);
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */
.tv-content-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.tv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tv-widget {
    background: var(--tv-white);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius);
    padding: 25px;
}

.tv-widget-title {
    font-size: 1.125rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--tv-primary);
}

.tv-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tv-widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tv-border);
}

.tv-widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--tv-secondary);
    color: var(--tv-white);
    padding: 80px 0 30px 0;
    border-top: 4px solid var(--tv-primary);
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-widget h4 {
    color: var(--tv-white);
    font-size: 1.125rem;
    margin-bottom: 25px;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--tv-transition);
}

.footer-widget a:hover {
    color: var(--tv-white);
}

.footer-logo {
    max-width: 250px;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--tv-transition);
}

.footer-social a:hover {
    background: var(--tv-primary);
    color: var(--tv-white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--tv-white);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.tv-form-group {
    margin-bottom: 20px;
}

.tv-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.tv-form-group input,
.tv-form-group textarea,
.tv-form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--tv-border);
    border-radius: var(--tv-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--tv-transition);
}

.tv-form-group input:focus,
.tv-form-group textarea:focus,
.tv-form-group select:focus {
    outline: none;
    border-color: var(--tv-primary);
}

.tv-form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.tv-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Contact Form */
.tv-contact-form {
    background: var(--tv-white);
    padding: 40px;
    border-radius: var(--tv-radius);
    border: 1px solid var(--tv-border);
}

/* ==========================================================================
   Search
   ========================================================================== */
.tv-search-form {
    display: flex;
    gap: 10px;
}

.tv-search-form input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--tv-border);
    border-radius: var(--tv-radius-sm);
    font-size: 1rem;
}

.tv-search-form input:focus {
    outline: none;
    border-color: var(--tv-primary);
}

/* Search Results */
.search-results .tv-post-card {
    margin-bottom: 30px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.tv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.tv-pagination a,
.tv-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: var(--tv-white);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius-sm);
    font-weight: 500;
    transition: var(--tv-transition);
}

.tv-pagination a:hover {
    background: var(--tv-bg);
    border-color: var(--tv-primary);
    color: var(--tv-primary);
}

.tv-pagination .current {
    background: var(--tv-primary);
    border-color: var(--tv-primary);
    color: var(--tv-white);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.tv-comments {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--tv-border);
}

.tv-comments-title {
    margin-bottom: 30px;
}

.tv-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tv-comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--tv-border);
}

.tv-comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tv-comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tv-comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.tv-comment-author {
    font-weight: 600;
    margin: 0;
}

.tv-comment-date {
    font-size: 0.875rem;
    color: var(--tv-text-light);
}

.tv-comment-content p:last-child {
    margin-bottom: 0;
}

.tv-comment-reply {
    font-size: 0.875rem;
    font-weight: 600;
}

.tv-comment .children {
    list-style: none;
    margin: 30px 0 0 50px;
    padding: 0;
}

/* Comment Form */
.tv-comment-form {
    margin-top: 40px;
}

.tv-comment-form h3 {
    margin-bottom: 20px;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.tv-404 {
    text-align: center;
    padding: 100px 20px;
}

.tv-404 h1 {
    font-size: 8rem;
    color: var(--tv-primary);
    margin-bottom: 20px;
    line-height: 1;
}

.tv-404 h2 {
    margin-bottom: 20px;
}

.tv-404 p {
    color: var(--tv-text-light);
    font-size: 1.125rem;
    margin-bottom: 30px;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.tv-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--tv-primary-light);
    color: var(--tv-primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.tv-badge-success {
    background: #dcfce7;
    color: #166534;
}

.tv-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.tv-badge-error {
    background: #fef2f2;
    color: #991b1b;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.my-0 { margin-top: 0; margin-bottom: 0; }

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

.hidden { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .tv-card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tv-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tv-content-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .header-inner {
        height: auto;
        flex-direction: column;
        padding: 15px 0;
        gap: 15px;
    }
    
    .primary-navigation {
        flex-direction: column;
        width: 100%;
    }
    
    .primary-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        display: none;
    }
    
    .primary-menu.toggled {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .tv-hero-content h1 {
        font-size: 2.25rem;
    }
    
    .tv-section {
        padding: 50px 0;
    }
    
    .tv-card-grid,
    .tv-card-grid-2,
    .tv-card-grid-3,
    .tv-card-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .tv-stats {
        grid-template-columns: 1fr;
    }
    
    .tv-form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .tv-post-featured-image {
        margin: 0 0 30px 0;
    }
    
    .tv-post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .tv-post-nav-link {
        max-width: 100%;
    }
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--tv-text-light);
    text-align: center;
    margin-top: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--tv-radius-sm);
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--tv-bg);
    border-radius: var(--tv-radius-sm);
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--tv-text);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Admin bar adjustments */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   v2.2.0 — Premium mobile navigation
   Full-screen overlay. Hero CTA + sectioned lists + quick actions.
   Trigger lives inside .primary-navigation; visible only below 900px.
   ═══════════════════════════════════════════════════════════════════════ */

/* Hide the mobile trigger on desktop — visible only at tablet/phone widths */
.tv-mnav-trigger {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: background 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.tv-mnav-trigger:hover,
.tv-mnav-trigger:focus-visible { background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.2); outline: none; }
.tv-mnav-trigger-bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 12px;
}
.tv-mnav-trigger-bars span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.tv-mnav-trigger[aria-expanded="true"] .tv-mnav-trigger-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.tv-mnav-trigger[aria-expanded="true"] .tv-mnav-trigger-bars span:nth-child(2) { opacity: 0; }
.tv-mnav-trigger[aria-expanded="true"] .tv-mnav-trigger-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Tablet / mobile — show trigger, hide horizontal menu */
@media (max-width: 900px) {
    .tv-mnav-trigger { display: inline-flex; }
    .primary-menu { display: none !important; }
    .primary-navigation { flex-direction: row; justify-content: flex-end; width: auto; }
    .menu-toggle { display: none !important; }
}

/* Overlay scaffolding */
.tv-mnav {
    position: fixed;
    inset: 0;
    z-index: 99998;
    font-family: inherit;
    color: #fff;
}
.tv-mnav[hidden] { display: none; }
body.tv-mnav-open { overflow: hidden; }

.tv-mnav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.tv-mnav.is-open .tv-mnav-backdrop { opacity: 1; }

/* Sheet — full-screen on phone; becomes a right-drawer on tablet */
.tv-mnav-sheet {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.3, 1);
    -webkit-overflow-scrolling: touch;
}
.tv-mnav.is-open .tv-mnav-sheet { transform: translateY(0); }
@media (min-width: 600px) {
    .tv-mnav-sheet {
        left: auto;
        width: 420px;
        max-width: 90vw;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateX(100%);
    }
    .tv-mnav.is-open .tv-mnav-sheet { transform: translateX(0); }
}

/* Header bar */
.tv-mnav-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
}
.tv-mnav-brand { display: flex; align-items: center; gap: 10px; }
.tv-mnav-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c41e3a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}
.tv-mnav-brand-name {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
}
.tv-mnav-brand-tag {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    margin-top: 2px;
}
.tv-mnav-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.tv-mnav-close:hover,
.tv-mnav-close:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); outline: none; }

/* Scrollable body */
.tv-mnav-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.tv-mnav-scroll::-webkit-scrollbar { width: 4px; }
.tv-mnav-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }
.tv-mnav-scroll::-webkit-scrollbar-track { background: transparent; }

/* Hero CTA */
.tv-mnav-hero-wrap { padding: 20px 16px 8px; }
.tv-mnav-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b1525 100%);
    border-radius: 14px;
    text-decoration: none !important;
    color: #fff !important;
    box-shadow: 0 6px 24px rgba(196, 30, 58, 0.32);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    min-height: 64px;
}
.tv-mnav-hero:hover,
.tv-mnav-hero:focus-visible { outline: none; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(196, 30, 58, 0.42); }
.tv-mnav-hero:active { transform: translateY(0); }
.tv-mnav-hero-body { flex: 1; min-width: 0; }
.tv-mnav-hero-eyebrow {
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.tv-mnav-hero-title {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}
.tv-mnav-hero-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Sections */
.tv-mnav-section { padding: 4px 16px 8px; }
.tv-mnav-section-title {
    color: rgba(255, 255, 255, 0.38);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 16px 4px 8px;
    text-transform: uppercase;
}

/* Row items */
.tv-mnav-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    text-decoration: none !important;
    color: inherit !important;
    border-radius: 12px;
    min-height: 60px;
    transition: background 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.tv-mnav-row:hover,
.tv-mnav-row:focus-visible,
.tv-mnav-row:active {
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}
.tv-mnav-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tv-mnav-row-text { flex: 1; min-width: 0; }
.tv-mnav-row-title {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}
.tv-mnav-row-sub {
    display: block;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    margin-top: 2px;
}
.tv-mnav-row-chev {
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
}

/* Tools grid (2-up) */
.tv-mnav-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.tv-mnav-tool {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit !important;
    min-height: 88px;
    transition: background 0.12s, border-color 0.12s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.tv-mnav-tool:hover,
.tv-mnav-tool:focus-visible { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); outline: none; }
.tv-mnav-tool:active { transform: scale(0.98); }
.tv-mnav-tool-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tv-mnav-tool-icon svg { width: 15px; height: 15px; }
.tv-mnav-tool-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.tv-mnav-tool-sub {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    line-height: 1.3;
}

/* Bottom quick actions */
.tv-mnav-quick {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 18px 16px 10px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.tv-mnav-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    color: inherit !important;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.tv-mnav-quick-btn:focus-visible { outline: none; }
.tv-mnav-quick-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.12s ease;
}
.tv-mnav-quick-btn:hover .tv-mnav-quick-circle,
.tv-mnav-quick-btn:focus-visible .tv-mnav-quick-circle { transform: translateY(-2px); }
.tv-mnav-quick-btn:active .tv-mnav-quick-circle { transform: translateY(0); }
.tv-mnav-quick-btn.call .tv-mnav-quick-circle { background: var(--tv-primary); }
.tv-mnav-quick-btn.text .tv-mnav-quick-circle { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255,255,255,0.2); }
.tv-mnav-quick-btn.chat .tv-mnav-quick-circle { background: #fff; color: var(--tv-secondary); }
.tv-mnav-quick-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
}

/* Footer */
.tv-mnav-footer {
    padding: 14px 16px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tv-mnav-sheet,
    .tv-mnav-backdrop,
    .tv-mnav-hero,
    .tv-mnav-tool,
    .tv-mnav-quick-circle,
    .tv-mnav-trigger-bars span { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v2.3.0 — Design System component styles
   Matches the PHP helpers in inc/design-system.php. Any element whose
   class starts with .tv- comes from here. Consistent across the site.
   ═══════════════════════════════════════════════════════════════════════ */

/* Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Icons — uniform stroke, inherited color from parent */
.tv-icon {
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.tv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--tv-font);
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--tv-transition);
    line-height: 1.1;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.tv-btn-sm { padding: 8px 14px; font-size: 13px; }
.tv-btn-md { padding: 12px 20px; font-size: 14px; }
.tv-btn-lg { padding: 16px 28px; font-size: 16px; }
.tv-btn-primary {
    background: var(--tv-primary);
    color: #fff !important;
    border-color: var(--tv-primary);
}
.tv-btn-primary:hover,
.tv-btn-primary:focus-visible {
    background: var(--tv-primary-dark);
    border-color: var(--tv-primary-dark);
    outline: none;
    transform: translateY(-1px);
}
.tv-btn-primary:active { transform: translateY(0); }
.tv-btn-secondary {
    background: transparent;
    color: var(--tv-secondary) !important;
    border-color: var(--tv-border);
}
.tv-btn-secondary.on-dark,
.on-dark .tv-btn-secondary {
    color: #fff !important;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.03);
}
.tv-btn-secondary:hover,
.tv-btn-secondary:focus-visible {
    border-color: var(--tv-secondary);
    background: var(--tv-surface);
    outline: none;
}
.tv-btn-secondary.on-dark:hover,
.on-dark .tv-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
}
.tv-btn-ghost {
    background: transparent;
    color: var(--tv-primary) !important;
    border-color: transparent;
    padding-left: 4px;
    padding-right: 4px;
}
.tv-btn-ghost:hover,
.tv-btn-ghost:focus-visible {
    color: var(--tv-primary-dark) !important;
    outline: none;
}
.tv-btn-ghost .tv-btn-arrow { transition: transform 0.2s; }
.tv-btn-ghost:hover .tv-btn-arrow { transform: translateX(3px); }

/* ── Cards ──────────────────────────────────────────────────────────── */
.tv-card {
    background: var(--tv-white);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--tv-transition);
    color: var(--tv-text);
    text-decoration: none !important;
}
.tv-card-link:hover,
.tv-card-link:focus-visible {
    border-color: var(--tv-secondary);
    transform: translateY(-2px);
    outline: none;
}
.tv-card-accent { border-left: 3px solid var(--tv-primary); border-radius: 0 var(--tv-radius) var(--tv-radius) 0; }
.tv-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tv-primary-light);
    color: var(--tv-primary);
}
.tv-card-title {
    font-family: var(--tv-font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--tv-text);
    margin: 0;
}
.tv-card-body { font-size: 14px; color: var(--tv-text-light); line-height: 1.6; }
.tv-card-body p:last-child { margin-bottom: 0; }

/* Card on a dark section flips to surface-style */
.on-dark .tv-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: #fff;
}
.on-dark .tv-card-title { color: #fff; }
.on-dark .tv-card-body { color: rgba(255,255,255,0.7); }
.on-dark .tv-card-icon {
    background: rgba(196,30,58,0.15);
    color: #ff4560;
}

/* ── Stats ──────────────────────────────────────────────────────────── */
.tv-stat { text-align: center; }
.tv-stat-num {
    font-family: var(--tv-font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1;
    color: var(--tv-text);
    letter-spacing: -0.02em;
}
.tv-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--tv-text-lighter);
    margin-top: 8px;
}
.tv-stat-sub { font-size: 12px; color: var(--tv-text-light); margin-top: 4px; }
.on-dark .tv-stat-num { color: #fff; }
.on-dark .tv-stat-label { color: rgba(255,255,255,0.5); }
.on-dark .tv-stat-sub { color: rgba(255,255,255,0.6); }

/* ── Section header ─────────────────────────────────────────────────── */
.tv-section-head { margin-bottom: 40px; }
.tv-section-head-center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.tv-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--tv-primary);
    padding: 4px 12px;
    background: var(--tv-primary-light);
    border-radius: 100px;
    margin-bottom: 16px;
}
.tv-eyebrow.on-dark {
    background: rgba(196,30,58,0.15);
    color: #ff4560;
}
.tv-section-title {
    font-family: var(--tv-font-display);
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--tv-text);
    margin: 0 0 16px;
}
.on-dark .tv-section-title { color: #fff; }
.tv-section-intro {
    font-size: 17px;
    line-height: 1.6;
    color: var(--tv-text-light);
    margin: 0;
}
.on-dark .tv-section-intro { color: rgba(255,255,255,0.7); }

/* ── Page header (unified hero) ─────────────────────────────────────── */
.tv-page-head {
    background: var(--tv-secondary);
    color: #fff;
    padding: 72px 0 64px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.tv-page-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(196,30,58,0.18), transparent 55%);
    pointer-events: none;
}
.tv-page-head-inner {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.tv-page-head-text { max-width: 720px; }
.tv-page-head-title {
    font-family: var(--tv-font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
}
.tv-page-head-sub {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255,255,255,0.72);
    margin: 16px 0 0;
    max-width: 640px;
}
.tv-page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
    .tv-page-head { padding: 48px 0 40px; }
}

/* ── Proof strip ────────────────────────────────────────────────────── */
.tv-proof {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 48px;
    flex-wrap: wrap;
    padding: 32px 0;
    border-top: 1px solid var(--tv-border);
    border-bottom: 1px solid var(--tv-border);
}
.tv-proof.on-dark {
    border-color: rgba(255,255,255,0.08);
}
.tv-proof-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tv-proof-num {
    font-family: var(--tv-font-display);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: var(--tv-text);
    letter-spacing: -0.02em;
}
.tv-proof-lbl {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--tv-text-lighter);
}
.on-dark .tv-proof-num { color: #fff; }
.on-dark .tv-proof-lbl { color: rgba(255,255,255,0.5); }

/* ── Global typography nudges — unify body text size across pages ──── */
body { font-family: var(--tv-font); color: var(--tv-text); }
h1, h2, h3, h4, h5, h6 { font-family: var(--tv-font-display); letter-spacing: -0.015em; }

/* Section spacing rhythm — each major page section gets 80/96/120px
   vertical rhythm instead of the current 50/60/80/100 mishmash. */
.tv-section { padding: 96px 0; }
@media (max-width: 768px) { .tv-section { padding: 64px 0; } }

/* ── Utility class: section with dark background ───────────────────── */
.tv-section-dark {
    background: var(--tv-secondary);
    color: #fff;
}
.tv-section-dark h1,
.tv-section-dark h2,
.tv-section-dark h3,
.tv-section-dark h4 { color: #fff; }
.tv-section-dark p { color: rgba(255,255,255,0.7); }


/* ═══════════════════════════════════════════════════════════════════════
   v2.3.0 — Widget consolidation
   The Brent Chat plugin injects a "Tap to Call" bar and a book popover
   on every page. Call/Text are now in the mobile nav (v2.2.0) so the
   bar is redundant and fights with the Chat pill. Hide it. The Chat
   with Brent pill itself stays — that's the primary conversion widget.
   ═══════════════════════════════════════════════════════════════════════ */

/* Hide the red "Tap to Call" footer bar from the Brent Chat plugin.
   The plugin uses various class names; we target all of them to be safe. */
.tv-tap-to-call-bar,
.brent-tap-to-call,
#tv-sticky-call-bar,
.tv-sticky-phone-cta,
.brent-chat-phone-bar { display: none !important; }

/* Ensure the Chat with Brent pill doesn't sit directly on top of the
   mobile-nav trigger on small screens (it lives bottom-right, nav is
   top-right, so the default is already fine, but pin its vertical
   position safely out of the way of the iOS home indicator). */
@media (max-width: 900px) {
    #brent-chat-widget-bubble,
    .brent-chat-bubble,
    .brent-chat-pill {
        bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }
}

/* Social icon links in footer — size + color */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #fff;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--tv-transition);
    text-decoration: none;
}
.footer-social a:hover,
.footer-social a:focus-visible {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    outline: none;
}

/* Scroll arrow + button arrow global — keep consistent */
.tv-scroll-arrow svg { opacity: 0.6; animation: tv-bounce 2s ease-in-out infinite; }
@keyframes tv-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* 404 / contact page quicklink + step icons — flat circle badge style */
.tv-404-quicklink-icon,
.tv-404-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--tv-primary-light);
    color: var(--tv-primary);
    margin-bottom: 12px;
}
.on-dark .tv-404-quicklink-icon,
.on-dark .tv-404-step-icon {
    background: rgba(196,30,58,0.15);
    color: #ff4560;
}


/* ═══════════════════════════════════════════════════════════════════════
   v2.3.0 — Contact page grid + info rows
   ═══════════════════════════════════════════════════════════════════════ */
.tv-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .tv-contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
.tv-contact-col { display: flex; flex-direction: column; gap: 20px; }
.tv-contact-h2 {
    font-family: var(--tv-font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--tv-text);
    margin: 0 0 8px;
}
.tv-contact-form { display: flex; flex-direction: column; gap: 16px; }
.tv-contact-card { gap: 16px; }
.tv-contact-info { display: flex; flex-direction: column; gap: 20px; }
.tv-contact-info-row { display: flex; gap: 14px; align-items: flex-start; }
.tv-contact-info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--tv-primary-light);
    color: var(--tv-primary);
}
.tv-contact-info-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--tv-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.tv-contact-info-text p {
    font-size: 15px;
    color: var(--tv-text-light);
    margin: 0;
    line-height: 1.5;
}
.tv-contact-info-text a {
    color: var(--tv-text);
    text-decoration: none;
    border-bottom: 1px solid var(--tv-border);
    transition: var(--tv-transition);
}
.tv-contact-info-text a:hover,
.tv-contact-info-text a:focus-visible {
    color: var(--tv-primary);
    border-color: var(--tv-primary);
    outline: none;
}
.tv-contact-hours {
    display: flex;
    flex-direction: column;
}
.tv-contact-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--tv-border);
    font-size: 14px;
}
.tv-contact-hours-row:last-child { border-bottom: none; }
.tv-contact-hours-row span:first-child { color: var(--tv-text); font-weight: 500; }
.tv-contact-hours-row span:last-child { color: var(--tv-text-light); }

/* ═══════════════════════════════════════════════════════════════════════
   v2.3.5 — MOBILE PREMIUM LAYER
   Small screens centered everything (logo, menu, hero, stats) and read as
   generic. This layer makes mobile editorial: logo left / Menu right on a
   single header row, hero + section copy ragged-left, stats as a tight
   3-across row. Append-only override layer — desktop untouched.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Header: one row — logo left, Menu right ─────────────────────── */
    .header-inner {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: auto;
        padding: 10px 0 !important;
        gap: 12px !important;
    }
    .site-branding { text-align: left; flex-shrink: 0; }
    .site-branding img { max-height: 42px; width: auto; }
    .primary-navigation { flex-direction: row !important; width: auto !important; align-items: center; }
    .primary-menu, .primary-menu.toggled { display: none !important; }

    /* ── Hero: editorial left alignment ──────────────────────────────── */
    .tv-sales-hero { padding: 24px 0 48px; }
    .tv-sales-hero-content { text-align: left !important; }
    .tv-trust-badge { margin-left: 0 !important; margin-right: auto !important; }
    .tv-sales-headline {
        text-align: left;
        font-size: 2.1rem !important;
        line-height: 1.08;
        letter-spacing: -0.02em;
    }
    .tv-sales-subheadline { text-align: left; font-size: 1rem; }
    .tv-dual-cta {
        flex-direction: column;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 10px;
    }
    .tv-btn-xl { width: 100% !important; max-width: none !important; justify-content: center; }

    /* ── Hero stats: tight 3-across row, numbers ragged-left ─────────── */
    .tv-hero-mini-stats {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start;
        gap: 10px !important;
        margin-top: 22px;
        padding-top: 18px;
        border-top: 1px solid rgba(255,255,255,.12);
    }
    .tv-mini-stat { flex: 1 1 0; min-width: 0; text-align: left; }
    .tv-mini-stat strong { display: block; font-size: 20px; line-height: 1.1; }
    .tv-mini-stat span { font-size: 10px; letter-spacing: .8px; }
    .tv-mini-stat-divider { display: none !important; }

    /* ── Section headers + proof strips: left ────────────────────────── */
    .tv-section-header,
    .tv-section-header h2,
    .tv-section-header p { text-align: left !important; }
    .tv-proof { justify-content: space-between; gap: 10px; flex-wrap: nowrap; padding: 22px 0; }
    .tv-proof-item { align-items: flex-start; text-align: left; flex: 1 1 0; min-width: 0; }
    .tv-proof-num { font-size: 22px; }
    .tv-proof-lbl { font-size: 9.5px; letter-spacing: .8px; }

    /* ── Trusted-by: left-aligned swipeable chip row ─────────────────── */
    .tv-proof-content {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left;
        gap: 10px;
    }
    .tv-proof-label { text-align: left; }
    .tv-partner-logos {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        padding-bottom: 4px;
    }
    .tv-partner-logos::-webkit-scrollbar { display: none; }
    .tv-logo-placeholder { flex-shrink: 0; }
}
