/**
 * Techfringe GP Child — Global Styles
 *
 * Brand design tokens, base typography, and utility overrides
 * for the GeneratePress child theme.
 *
 * Fonts: Outfit (Latin) + Cairo (Arabic)
 * Brand: Atlantic Blue #1E3A5F, Gold #C8973E
 */

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Brand colors */
    --tf-atlantic-blue: #1E3A5F;
    --tf-gold: #C8973E;
    --tf-gold-light: #D4A94E;
    --tf-gold-hover: #B8872E;
    --tf-midnight-navy: #0A1628;

    /* Neutral palette */
    --tf-white: #FFFFFF;
    --tf-off-white: #F8F6F1;
    --tf-gray-100: #F3F1ED;
    --tf-gray-200: #E5E2DB;
    --tf-gray-300: #D5D1C9;
    --tf-gray-400: #C5C1B9;
    --tf-gray-500: #9A9690;
    --tf-gray-600: #6B7B8D;
    --tf-gray-700: #3D4F5F;
    --tf-gray-800: #2A3A48;
    --tf-gray-900: #1A2632;

    /* Semantic */
    --tf-text: var(--tf-atlantic-blue);
    --tf-text-muted: rgba(30, 58, 95, 0.6);
    --tf-text-light: var(--tf-white);
    --tf-bg: var(--tf-white);
    --tf-bg-light: var(--tf-off-white);
    --tf-border: var(--tf-gray-300);
    --tf-success: #198754;
    --tf-error: #DC3545;
    --tf-whatsapp: #25D366;
    --tf-whatsapp-hover: #1EBE57;

    /* Typography */
    --tf-font-primary: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
    --tf-font-arabic: 'Cairo', 'Outfit', 'Helvetica Neue', Arial, sans-serif;
    --tf-line-height: 1.6;
    --tf-line-height-tight: 1.2;
    --tf-line-height-snug: 1.4;

    /* Spacing scale (rem, 8px base) */
    --tf-space-xs: 0.25rem;
    --tf-space-sm: 0.5rem;
    --tf-space-md: 1rem;
    --tf-space-lg: 1.5rem;
    --tf-space-xl: 2rem;
    --tf-space-2xl: 3rem;
    --tf-space-3xl: 4rem;
    --tf-space-4xl: 5rem;

    /* Layout */
    --tf-container-max: 1200px;
    --tf-container-padding: 1.5rem;

    /* Radius */
    --tf-radius-sm: 4px;
    --tf-radius: 8px;
    --tf-radius-lg: 12px;
    --tf-radius-xl: 16px;
    --tf-radius-full: 50%;

    /* Shadows */
    --tf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --tf-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --tf-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --tf-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --tf-transition: 0.3s ease;
    --tf-transition-fast: 0.15s ease;
}

/* Arabic font override */
html[lang^="ar"] {
    --tf-font-primary: var(--tf-font-arabic);
}

/* ==========================================================================
   2. GeneratePress Overrides — Typography
   ========================================================================== */

body {
    font-family: var(--tf-font-primary);
    color: var(--tf-text);
    line-height: var(--tf-line-height);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tf-font-primary);
    color: var(--tf-atlantic-blue);
    line-height: var(--tf-line-height-tight);
}

h1 { font-weight: 700; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }

/* ==========================================================================
   3. GeneratePress Overrides — Links & Buttons
   ========================================================================== */

a {
    color: var(--tf-atlantic-blue);
    transition: color var(--tf-transition-fast);
}

a:hover {
    color: var(--tf-gold);
}

/* Primary button style (gold gradient) */
.tf-btn-primary,
.wp-block-button .wp-block-button__link {
    background: linear-gradient(135deg, var(--tf-gold), var(--tf-gold-light));
    color: var(--tf-white);
    border: none;
    border-radius: var(--tf-radius);
    padding: 0.75rem 2rem;
    font-family: var(--tf-font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--tf-transition);
    text-decoration: none;
    display: inline-block;
}

.tf-btn-primary:hover,
.wp-block-button .wp-block-button__link:hover {
    background: linear-gradient(135deg, var(--tf-gold-hover), var(--tf-gold));
    color: var(--tf-white);
    transform: translateY(-1px);
    box-shadow: var(--tf-shadow-md);
}

/* Secondary button (outline) */
.tf-btn-secondary {
    background: transparent;
    color: var(--tf-atlantic-blue);
    border: 2px solid var(--tf-atlantic-blue);
    border-radius: var(--tf-radius);
    padding: 0.75rem 2rem;
    font-family: var(--tf-font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--tf-transition);
    text-decoration: none;
    display: inline-block;
}

.tf-btn-secondary:hover {
    background: var(--tf-atlantic-blue);
    color: var(--tf-white);
}

/* WhatsApp button */
.tf-btn-whatsapp {
    background: var(--tf-whatsapp);
    color: var(--tf-white);
    border: none;
    border-radius: var(--tf-radius);
    padding: 0.75rem 2rem;
    font-family: var(--tf-font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--tf-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tf-btn-whatsapp:hover {
    background: var(--tf-whatsapp-hover);
    color: var(--tf-white);
    transform: translateY(-1px);
}

/* ==========================================================================
   4. GeneratePress Overrides — Header & Navigation
   ========================================================================== */

/* Override GP header background */
.site-header {
    background-color: var(--tf-white);
    box-shadow: var(--tf-shadow-sm);
}

/* Navigation links */
.main-navigation a {
    font-family: var(--tf-font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--tf-atlantic-blue);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--tf-gold);
}

/* ==========================================================================
   5. GeneratePress Overrides — Footer
   ========================================================================== */

.site-footer {
    background-color: var(--tf-midnight-navy);
    color: var(--tf-white);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
    color: var(--tf-gold);
}

/* ==========================================================================
   5b. GeneratePress Overrides — Layout / Sidebar removal
   --------------------------------------------------------------------------
   Every page template in this child theme manages its own layout
   (sidebar filters, product detail sidebar, RFQ sidebar, etc.).
   GP's default right-sidebar + content-area 70/30 split must be
   completely neutralised so our custom grids can work.
   ========================================================================== */

/* Force content area to full width regardless of GP sidebar setting */
.content-area,
#primary,
.site-main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Hide GP's auto-generated sidebar on all pages */
#right-sidebar,
#left-sidebar,
#secondary,
.widget-area.sidebar,
.is-right-sidebar,
.sidebar .widget-area {
    display: none !important;
    width: 0 !important;
}

/* Remove GP's inside-article padding that conflicts with our sections */
.inside-article {
    padding: 0 !important;
    margin: 0 !important;
}

/* The entry-content wrapper GP may add */
.entry-content {
    max-width: 100% !important;
}

/* Ensure GP's site-content doesn't use flex/grid that expects a sidebar */
.site-content,
#content {
    display: block !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* GP's grid-container should not constrain our full-width sections
   (page header, CTA banner, hero need to span full viewport) */
.site-content > .grid-container,
.site-content > .container,
#content > .grid-container,
#content > .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Reset any GP body-class driven layout rules */
body.right-sidebar .site-content,
body.left-sidebar .site-content,
body.both-sidebars .site-content,
body.no-sidebar .site-content {
    display: block !important;
}

body.right-sidebar .content-area,
body.left-sidebar .content-area,
body.both-sidebars .content-area,
body.no-sidebar .content-area {
    width: 100% !important;
    float: none !important;
}

/* ==========================================================================
   6. Utility Classes
   ========================================================================== */

.tf-container {
    max-width: var(--tf-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--tf-container-padding);
    padding-right: var(--tf-container-padding);
}

.tf-section {
    padding-top: var(--tf-space-3xl);
    padding-bottom: var(--tf-space-3xl);
}

.tf-section--light {
    background-color: var(--tf-bg-light);
}

.tf-section--dark {
    background-color: var(--tf-midnight-navy);
    color: var(--tf-white);
}

.tf-text-gold {
    color: var(--tf-gold);
}

.tf-text-muted {
    color: var(--tf-text-muted);
}

/* Gold accent underline for headings */
.tf-heading-accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--tf-gold), var(--tf-gold-light));
    margin-top: var(--tf-space-sm);
    border-radius: 2px;
}

/* Centered variant */
.tf-heading-accent--center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   7. WhatsApp Floating Button
   ========================================================================== */

.tf-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: var(--tf-radius-full);
    background: var(--tf-whatsapp);
    color: var(--tf-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tf-shadow-lg);
    transition: all var(--tf-transition);
    text-decoration: none;
}

.tf-whatsapp-float:hover {
    background: var(--tf-whatsapp-hover);
    color: var(--tf-white);
    transform: scale(1.08);
}

.tf-whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* RTL: flip to left side */
html[dir="rtl"] .tf-whatsapp-float {
    right: auto;
    left: 24px;
}

/* ==========================================================================
   8. Top Utility Bar
   ========================================================================== */

.tfgp-topbar {
    background-color: var(--tf-midnight-navy);
    color: var(--tf-white);
    font-size: 0.8rem;
    line-height: 1;
}

.tfgp-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.tfgp-topbar__left,
.tfgp-topbar__right {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
}

.tfgp-topbar__left a,
.tfgp-topbar__right span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--tf-white);
    opacity: 0.85;
    text-decoration: none;
    transition: opacity var(--tf-transition-fast);
}

.tfgp-topbar__left a:hover {
    opacity: 1;
    color: var(--tf-white);
}

.tfgp-topbar svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .tfgp-topbar {
        display: none;
    }
}

/* ==========================================================================
   9. Header CTA Buttons (inside GP nav)
   ========================================================================== */

.tfgp-nav-cta-item {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.tfgp-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--tf-radius);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--tf-transition);
    white-space: nowrap;
    line-height: 1;
}

/* WhatsApp variant */
.tfgp-nav-cta--wa {
    background: var(--tf-whatsapp);
    color: var(--tf-white);
}

.tfgp-nav-cta--wa:hover {
    background: var(--tf-whatsapp-hover);
    color: var(--tf-white);
}

.tfgp-nav-cta--wa svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Request Quote variant */
.tfgp-nav-cta--quote {
    background: linear-gradient(135deg, var(--tf-gold), var(--tf-gold-light));
    color: var(--tf-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tfgp-nav-cta--quote:hover {
    background: linear-gradient(135deg, var(--tf-gold-hover), var(--tf-gold));
    color: var(--tf-white);
    transform: translateY(-1px);
    box-shadow: var(--tf-shadow);
}

/* Mobile: style as full-width items inside GP slideout */
@media (max-width: 768px) {
    .tfgp-nav-cta-item {
        margin-left: 0;
        padding: 0.5rem 1rem;
    }
    .tfgp-nav-cta {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
    }
}

/* ==========================================================================
   10. Custom Footer Grid
   ========================================================================== */

/* Hide GP's default widget-based footer */
.footer-widgets-container {
    display: none;
}

/* Override GP footer to midnight navy */
.site-footer {
    background-color: var(--tf-midnight-navy);
    color: var(--tf-white);
    padding: 0;
}

.tfgp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--tf-space-xl);
    padding-top: var(--tf-space-3xl);
    padding-bottom: var(--tf-space-2xl);
}

/* Logo */
.tfgp-footer-logo {
    display: block;
    height: 48px;
    width: auto;
    margin-bottom: var(--tf-space-md);
}

/* Tagline */
.tfgp-footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: var(--tf-line-height);
    margin-bottom: var(--tf-space-lg);
}

/* Social icons */
.tfgp-footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.tfgp-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--tf-transition-fast);
}

.tfgp-footer-social a:hover {
    color: var(--tf-gold);
}

.tfgp-footer-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Column headings */
.tfgp-footer-heading {
    color: var(--tf-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--tf-space-lg);
    padding-bottom: var(--tf-space-sm);
    position: relative;
}

.tfgp-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--tf-gold), var(--tf-gold-light));
    border-radius: 2px;
}

/* Link lists */
.tfgp-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tfgp-footer-links li {
    margin-bottom: 0.6rem;
}

.tfgp-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--tf-transition-fast);
}

.tfgp-footer-links a:hover {
    color: var(--tf-gold);
}

/* Contact address block */
.tfgp-footer-address {
    font-style: normal;
    font-size: 0.88rem;
    line-height: var(--tf-line-height);
}

.tfgp-footer-address__row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.tfgp-footer-address__row svg {
    flex-shrink: 0;
    margin-top: 2px;
    fill: var(--tf-gold);
}

.tfgp-footer-address__row a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--tf-transition-fast);
}

.tfgp-footer-address__row a:hover {
    color: var(--tf-gold);
}

/* Footer bottom bar */
.tfgp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--tf-space-lg);
    padding-bottom: var(--tf-space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.tfgp-footer-bottom__links {
    display: inline-flex;
    gap: 1.5rem;
}

.tfgp-footer-bottom__links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--tf-transition-fast);
}

.tfgp-footer-bottom__links a:hover {
    color: var(--tf-gold);
}

/* Tablet: 2×2 grid */
@media (max-width: 992px) {
    .tfgp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile: stacked */
@media (max-width: 768px) {
    .tfgp-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--tf-space-xl);
        padding-top: var(--tf-space-2xl);
        padding-bottom: var(--tf-space-xl);
    }

    .tfgp-footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* ==========================================================================
   11. WhatsApp Float — Tooltip
   ========================================================================== */

.tf-whatsapp-float__tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--tf-white);
    color: var(--tf-gray-800);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: var(--tf-shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--tf-transition-fast);
}

/* Arrow pointing right toward the button */
.tf-whatsapp-float__tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: var(--tf-white);
}

.tf-whatsapp-float:hover .tf-whatsapp-float__tooltip {
    opacity: 1;
}

/* ==========================================================================
   12. Button System (.tf-btn with modifiers)
   ========================================================================== */

.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--tf-radius);
    font-family: var(--tf-font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--tf-transition);
    line-height: 1.2;
    white-space: nowrap;
}

.tf-btn svg {
    flex-shrink: 0;
    fill: currentColor;
}

/* Primary (gold gradient) */
.tf-btn--primary {
    background: linear-gradient(135deg, var(--tf-gold), var(--tf-gold-light));
    color: var(--tf-white);
    border-color: transparent;
}

.tf-btn--primary:hover {
    background: linear-gradient(135deg, var(--tf-gold-hover), var(--tf-gold));
    color: var(--tf-white);
    transform: translateY(-1px);
    box-shadow: var(--tf-shadow-md);
}

/* Secondary (outline blue) */
.tf-btn--secondary {
    background: transparent;
    color: var(--tf-atlantic-blue);
    border-color: var(--tf-atlantic-blue);
}

.tf-btn--secondary:hover {
    background: var(--tf-atlantic-blue);
    color: var(--tf-white);
}

/* WhatsApp */
.tf-btn--whatsapp {
    background: var(--tf-whatsapp);
    color: var(--tf-white);
    border-color: transparent;
}

.tf-btn--whatsapp:hover {
    background: var(--tf-whatsapp-hover);
    color: var(--tf-white);
    transform: translateY(-1px);
}

/* Outline light (for dark backgrounds) */
.tf-btn--outline-light {
    background: transparent;
    color: var(--tf-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.tf-btn--outline-light:hover {
    background: var(--tf-white);
    color: var(--tf-atlantic-blue);
    border-color: var(--tf-white);
}

/* Block (full width) */
.tf-btn--block {
    display: flex;
    width: 100%;
}

/* Size modifiers */
.tf-btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.82rem;
}

.tf-btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

/* Icon-only */
.tf-btn--icon-only {
    padding: 0.5rem;
    min-width: 38px;
    min-height: 38px;
}

/* ==========================================================================
   13. Page Header (.tf-page-header)
   ========================================================================== */

.tf-page-header {
    background: linear-gradient(135deg, var(--tf-atlantic-blue) 0%, var(--tf-midnight-navy) 100%);
    color: var(--tf-white);
    padding: var(--tf-space-3xl) 0 var(--tf-space-2xl);
    position: relative;
    background-size: cover;
    background-position: center;
}

.tf-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.75);
    pointer-events: none;
}

.tf-page-header .tf-container {
    position: relative;
    z-index: 1;
}

.tf-page-header__title {
    color: var(--tf-white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 0.5rem;
}

.tf-page-header__subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0;
}

.tf-page-header__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0 0;
}

.tf-page-header--compact {
    padding: var(--tf-space-2xl) 0 var(--tf-space-xl);
}

/* ==========================================================================
   14. Section Utilities
   ========================================================================== */

.tf-section--compact {
    padding-top: var(--tf-space-xl);
    padding-bottom: var(--tf-space-xl);
}

.tf-bg-light {
    background-color: var(--tf-bg-light);
}

.tf-bg-navy {
    background-color: var(--tf-midnight-navy);
    color: var(--tf-white);
}

.tf-section__title {
    text-align: center;
    margin-bottom: var(--tf-space-2xl);
}

/* ==========================================================================
   15. Grid System
   ========================================================================== */

.tf-grid {
    display: grid;
    gap: var(--tf-space-xl);
}

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

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

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

/* Inside catalog (sidebar present), 2 columns — cards are wider & more readable */
.tf-catalog__main .tf-grid--3 {
    grid-template-columns: repeat(2, 1fr);
}

/* ==========================================================================
   16. CTA Banner
   ========================================================================== */

.tf-cta-banner {
    background: linear-gradient(135deg, var(--tf-gold) 0%, var(--tf-gold-light) 100%);
    color: var(--tf-white);
    padding: var(--tf-space-3xl) 0;
}

.tf-cta-banner h2 {
    color: var(--tf-white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.75rem;
}

.tf-cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto var(--tf-space-xl);
    font-size: 1.05rem;
}

.tf-cta-banner__actions {
    display: flex;
    gap: var(--tf-space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   17. Product Card
   ========================================================================== */

.tf-product-card {
    background: var(--tf-white);
    border-radius: var(--tf-radius-lg);
    overflow: hidden;
    box-shadow: var(--tf-shadow-sm);
    transition: all var(--tf-transition);
    display: flex;
    flex-direction: column;
}

.tf-product-card:hover {
    box-shadow: var(--tf-shadow-md);
    transform: translateY(-4px);
}

.tf-product-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--tf-gray-100);
}

.tf-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tf-transition);
}

.tf-product-card:hover .tf-product-card__img {
    transform: scale(1.05);
}

.tf-product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--tf-gray-400);
    background: var(--tf-gray-100);
}

.tf-product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--tf-atlantic-blue);
    color: var(--tf-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--tf-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tf-product-card__body {
    padding: var(--tf-space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tf-product-card__code {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--tf-gold);
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tf-product-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: var(--tf-line-height-snug);
}

.tf-product-card__title a {
    color: var(--tf-atlantic-blue);
    text-decoration: none;
}

.tf-product-card__title a:hover {
    color: var(--tf-gold);
}

.tf-product-card__desc {
    font-size: 0.9rem;
    color: var(--tf-gray-600);
    line-height: var(--tf-line-height);
    flex: 1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-product-card__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 var(--tf-space-lg) var(--tf-space-lg);
}

/* ==========================================================================
   18. Product Detail & Gallery
   ========================================================================== */

.tf-product-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--tf-space-2xl);
    align-items: flex-start;
}

.tf-product-detail__main {
    min-width: 0; /* prevent grid blowout from long content */
}

.tf-product-detail__sidebar {
    min-width: 0;
}

.tf-product-gallery {
    margin-bottom: var(--tf-space-xl);
}

.tf-product-gallery__main {
    border-radius: var(--tf-radius-lg);
    overflow: hidden;
    background: var(--tf-gray-100);
    margin-bottom: var(--tf-space-md);
}

.tf-product-gallery__img {
    width: 100%;
    height: auto;
    display: block;
}

.tf-product-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tf-product-gallery__thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--tf-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: var(--tf-gray-100);
    transition: border-color var(--tf-transition-fast);
}

.tf-product-gallery__thumb:hover,
.tf-product-gallery__thumb.is-active {
    border-color: var(--tf-gold);
}

.tf-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-product-section {
    margin-bottom: var(--tf-space-xl);
}

.tf-product-section h2 {
    font-size: 1.25rem;
    margin: 0 0 var(--tf-space-md);
    padding-bottom: var(--tf-space-sm);
    border-bottom: 2px solid var(--tf-gray-200);
}

.tf-product-section--highlight {
    background: var(--tf-bg-light);
    padding: var(--tf-space-lg);
    border-radius: var(--tf-radius);
    border-left: 4px solid var(--tf-gold);
}

/* RFQ sidebar box */
.tf-product-rfq-box {
    background: var(--tf-bg-light);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-space-xl);
    margin-bottom: var(--tf-space-lg);
    position: sticky;
    top: 100px;
}

.tf-product-rfq-box h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.tf-product-rfq-box p {
    font-size: 0.88rem;
    color: var(--tf-gray-600);
    margin: 0 0 var(--tf-space-lg);
}

.tf-product-rfq-box .tf-btn {
    margin-bottom: 0.75rem;
}

.tf-product-rfq-box .tf-btn:last-child {
    margin-bottom: 0;
}

.tf-product-rfq-box--form {
    position: static;
}

/* ==========================================================================
   19. Badges, Tags, Lead Text
   ========================================================================== */

.tf-badge {
    display: inline-block;
    background: var(--tf-atlantic-blue);
    color: var(--tf-white);
    padding: 0.2rem 0.75rem;
    border-radius: var(--tf-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tf-tag {
    display: inline-block;
    background: var(--tf-gray-100);
    color: var(--tf-atlantic-blue);
    padding: 0.35rem 0.85rem;
    border-radius: var(--tf-radius);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.25rem 0.25rem 0.25rem 0;
    border: 1px solid var(--tf-gray-200);
}

.tf-lead {
    font-size: 1.1rem;
    line-height: var(--tf-line-height);
    color: var(--tf-gray-700);
    margin: 0;
}

.tf-standards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tf-product-code {
    font-family: monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   20. Specs Table
   ========================================================================== */

.tf-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.tf-specs-table th,
.tf-specs-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--tf-gray-200);
    font-size: 0.9rem;
}

.tf-specs-table th {
    width: 40%;
    font-weight: 600;
    color: var(--tf-atlantic-blue);
    background: var(--tf-bg-light);
}

.tf-specs-table td {
    color: var(--tf-gray-700);
}

/* ==========================================================================
   21. Catalog Layout & Filters
   ========================================================================== */

.tf-catalog {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--tf-space-2xl);
    align-items: flex-start;
}

.tf-catalog__sidebar {
    position: sticky;
    top: 100px;
}

.tf-catalog__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--tf-space-lg);
    padding-bottom: var(--tf-space-md);
    border-bottom: 1px solid var(--tf-gray-200);
}

.tf-catalog__count {
    font-size: 0.9rem;
    color: var(--tf-gray-600);
    font-weight: 500;
}

.tf-catalog__filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--tf-gray-300);
    border-radius: var(--tf-radius);
    background: var(--tf-white);
    color: var(--tf-atlantic-blue);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--tf-transition-fast);
}

.tf-catalog__filter-toggle:hover {
    border-color: var(--tf-atlantic-blue);
}

/* Filters */
.tf-filters {
    background: var(--tf-white);
    border-radius: var(--tf-radius-lg);
    border: 1px solid var(--tf-gray-200);
    padding: var(--tf-space-lg);
}

.tf-filter-group {
    margin-bottom: var(--tf-space-lg);
    padding-bottom: var(--tf-space-lg);
    border-bottom: 1px solid var(--tf-gray-200);
}

.tf-filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tf-filter-group__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tf-atlantic-blue);
    margin: 0 0 var(--tf-space-md);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Filter search */
.tf-filter-search {
    display: flex;
    border: 1px solid var(--tf-gray-300);
    border-radius: var(--tf-radius);
    overflow: hidden;
}

.tf-filter-search__input {
    flex: 1;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-family: var(--tf-font-primary);
    outline: none;
    background: var(--tf-white);
    color: var(--tf-text);
    min-width: 0;
}

.tf-filter-search__input::placeholder {
    color: var(--tf-gray-500);
}

.tf-filter-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: var(--tf-atlantic-blue);
    color: var(--tf-white);
    border: none;
    cursor: pointer;
    transition: background var(--tf-transition-fast);
}

.tf-filter-search__btn:hover {
    background: var(--tf-gold);
}

/* Category list */
.tf-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-filter-list__item {
    position: relative;
}

.tf-filter-list__item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    color: var(--tf-gray-700);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--tf-transition-fast);
}

.tf-filter-list__item > a:hover {
    color: var(--tf-gold);
}

.tf-filter-list__item.is-active > a {
    color: var(--tf-atlantic-blue);
    font-weight: 600;
}

.tf-filter-list__count {
    font-size: 0.78rem;
    color: var(--tf-gray-500);
    font-weight: 400;
}

/* Subcategory list (collapsible) */
.tf-filter-sublist {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--tf-transition);
}

.tf-filter-list__item.is-expanded > .tf-filter-sublist {
    max-height: 500px;
}

.tf-filter-sublist li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0;
    color: var(--tf-gray-600);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color var(--tf-transition-fast);
}

.tf-filter-sublist li a:hover {
    color: var(--tf-gold);
}

.tf-filter-sublist li.is-active a {
    color: var(--tf-atlantic-blue);
    font-weight: 600;
}

/* Expand/collapse toggle */
.tf-filter-toggle {
    position: absolute;
    right: 0;
    top: 0.3rem;
    background: none;
    border: none;
    padding: 0.2rem;
    cursor: pointer;
    color: var(--tf-gray-500);
    transition: transform var(--tf-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-filter-list__item.is-expanded > .tf-filter-toggle {
    transform: rotate(180deg);
}

/* Filter CTA */
.tf-filter-cta {
    background: linear-gradient(135deg, var(--tf-atlantic-blue), var(--tf-midnight-navy));
    color: var(--tf-white);
    border-radius: var(--tf-radius);
    padding: var(--tf-space-lg);
    border: none;
}

.tf-filter-cta h4 {
    color: var(--tf-white);
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
}

.tf-filter-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    margin: 0 0 var(--tf-space-md);
}

/* ==========================================================================
   22. Subcategories
   ========================================================================== */

.tf-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tf-space-md);
    justify-content: center;
}

.tf-subcategory-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--tf-white);
    border: 1px solid var(--tf-gray-200);
    border-radius: var(--tf-radius);
    text-decoration: none;
    color: var(--tf-atlantic-blue);
    transition: all var(--tf-transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.tf-subcategory-card:hover {
    border-color: var(--tf-gold);
    box-shadow: var(--tf-shadow);
    color: var(--tf-gold);
}

.tf-subcategory-card img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tf-subcategory-card small {
    font-size: 0.75rem;
    color: var(--tf-gray-500);
    font-weight: 400;
    margin-left: 0.25rem;
}

/* ==========================================================================
   23. Pagination
   ========================================================================== */

.tf-pagination {
    margin-top: var(--tf-space-2xl);
    display: flex;
    justify-content: center;
}

.tf-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tf-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border: 1px solid var(--tf-gray-300);
    border-radius: var(--tf-radius-sm);
    background: var(--tf-white);
    color: var(--tf-atlantic-blue);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--tf-transition-fast);
}

.tf-pagination .page-numbers:hover {
    border-color: var(--tf-atlantic-blue);
    background: var(--tf-atlantic-blue);
    color: var(--tf-white);
}

.tf-pagination .page-numbers.current {
    background: var(--tf-atlantic-blue);
    color: var(--tf-white);
    border-color: var(--tf-atlantic-blue);
}

.tf-pagination .page-numbers.dots {
    border: none;
    background: none;
    cursor: default;
}

.tf-pagination .prev,
.tf-pagination .next {
    font-size: 0.82rem;
}

/* ==========================================================================
   24. Empty State
   ========================================================================== */

.tf-empty-state {
    text-align: center;
    padding: var(--tf-space-3xl) var(--tf-space-xl);
    color: var(--tf-gray-600);
}

.tf-empty-state svg {
    margin-bottom: var(--tf-space-lg);
    color: var(--tf-gray-400);
}

.tf-empty-state h3 {
    font-size: 1.25rem;
    color: var(--tf-atlantic-blue);
    margin: 0 0 0.75rem;
}

.tf-empty-state p {
    max-width: 480px;
    margin: 0 auto var(--tf-space-xl);
    font-size: 0.95rem;
    line-height: var(--tf-line-height);
}

.tf-empty-state__code {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: var(--tf-gray-200);
    line-height: 1;
    margin-bottom: var(--tf-space-md);
}

.tf-empty-state__actions {
    display: flex;
    gap: var(--tf-space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   25. Breadcrumbs
   ========================================================================== */

.tf-breadcrumbs {
    margin-bottom: var(--tf-space-md);
}

.tf-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
}

.tf-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
}

.tf-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--tf-transition-fast);
}

.tf-breadcrumbs a:hover {
    color: var(--tf-white);
}

.tf-breadcrumbs__sep {
    margin: 0 0.4rem;
    color: rgba(255, 255, 255, 0.4);
}

.tf-breadcrumbs span[aria-current] {
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   26. Prose / Content
   ========================================================================== */

.tf-prose {
    font-size: 0.95rem;
    line-height: var(--tf-line-height);
    color: var(--tf-gray-700);
}

.tf-prose p {
    margin: 0 0 var(--tf-space-md);
}

.tf-prose h2,
.tf-prose h3,
.tf-prose h4 {
    margin: var(--tf-space-xl) 0 var(--tf-space-md);
    color: var(--tf-atlantic-blue);
}

.tf-prose ul,
.tf-prose ol {
    margin: 0 0 var(--tf-space-md);
    padding-left: 1.5rem;
}

.tf-prose li {
    margin-bottom: 0.35rem;
}

.tf-prose a {
    color: var(--tf-gold);
    text-decoration: underline;
}

.tf-prose a:hover {
    color: var(--tf-gold-hover);
}

.tf-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--tf-radius);
}

.tf-prose blockquote {
    border-left: 4px solid var(--tf-gold);
    margin: var(--tf-space-lg) 0;
    padding: var(--tf-space-md) var(--tf-space-lg);
    background: var(--tf-bg-light);
    border-radius: 0 var(--tf-radius) var(--tf-radius) 0;
}

.tf-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--tf-space-lg) 0;
}

.tf-prose th,
.tf-prose td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--tf-gray-200);
    text-align: left;
}

/* ==========================================================================
   27. Utility Classes
   ========================================================================== */

.tf-hide-desktop {
    display: none !important;
}

.tf-text-center {
    text-align: center;
}

/* ==========================================================================
   28. Responsive — Product-specific breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    /* Product detail: sidebar below content */
    .tf-product-detail {
        grid-template-columns: 1fr;
    }

    .tf-product-rfq-box {
        position: static;
    }

    /* Grid: 2 columns */
    .tf-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    /* Catalog: single column, sidebar becomes overlay */
    .tf-catalog {
        grid-template-columns: 1fr;
    }

    .tf-catalog__sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: var(--tf-white);
        z-index: 1000;
        overflow-y: auto;
        padding: var(--tf-space-lg);
        box-shadow: var(--tf-shadow-lg);
        transition: left var(--tf-transition);
    }

    .tf-catalog__sidebar.is-open {
        left: 0;
    }

    /* Show the filter toggle on mobile */
    .tf-hide-desktop {
        display: inline-flex !important;
    }

    /* Standalone grids: single column on mobile */
    .tf-grid--3,
    .tf-grid--2 {
        grid-template-columns: 1fr;
    }

    /* Catalog product grid: 2 columns on tablet (sidebar is now hidden) */
    .tf-catalog__main .tf-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Page header adjustments */
    .tf-page-header {
        padding: var(--tf-space-2xl) 0 var(--tf-space-xl);
    }

    .tf-page-header__title {
        font-size: 1.5rem;
    }

    /* CTA banner */
    .tf-cta-banner__actions {
        flex-direction: column;
        align-items: center;
    }

    .tf-cta-banner__actions .tf-btn {
        width: 100%;
        max-width: 320px;
    }

    /* Product gallery thumbs */
    .tf-product-gallery__thumbs {
        justify-content: center;
    }

    /* Subcategories */
    .tf-subcategories {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    /* Product card actions: stack */
    .tf-product-card__actions {
        flex-direction: column;
    }

    .tf-product-card__actions .tf-btn {
        width: 100%;
    }

    /* Specs table: full width cells */
    .tf-specs-table th,
    .tf-specs-table td {
        display: block;
        width: 100%;
    }

    .tf-specs-table th {
        border-bottom: none;
        padding-bottom: 0.25rem;
    }

    .tf-specs-table td {
        padding-top: 0.25rem;
    }

    /* Catalog product grid: single column on phones */
    .tf-catalog__main .tf-grid--3 {
        grid-template-columns: 1fr;
    }

    /* Pagination */
    .tf-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    /* Empty state: stack buttons */
    .tf-empty-state__actions {
        flex-direction: column;
        align-items: center;
    }

    .tf-empty-state__actions .tf-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ==========================================================================
   29. RFQ Form
   ========================================================================== */

.tf-rfq-form {
    position: relative;
}

.tf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tf-space-md);
}

.tf-form-group {
    margin-bottom: var(--tf-space-md);
}

.tf-form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--tf-atlantic-blue);
    margin-bottom: 0.35rem;
}

.tf-form-group input,
.tf-form-group textarea,
.tf-form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--tf-gray-300);
    border-radius: var(--tf-radius);
    font-family: var(--tf-font-primary);
    font-size: 0.9rem;
    color: var(--tf-gray-800);
    background: var(--tf-white);
    transition: border-color var(--tf-transition-fast), box-shadow var(--tf-transition-fast);
    outline: none;
}

.tf-form-group input:focus,
.tf-form-group textarea:focus,
.tf-form-group select:focus {
    border-color: var(--tf-atlantic-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.tf-form-group input::placeholder,
.tf-form-group textarea::placeholder {
    color: var(--tf-gray-500);
}

.tf-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236C757D'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
}

.tf-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* File upload area */
.tf-file-upload {
    position: relative;
    border: 2px dashed var(--tf-gray-300);
    border-radius: var(--tf-radius);
    padding: var(--tf-space-lg);
    text-align: center;
    transition: all var(--tf-transition-fast);
    cursor: pointer;
}

.tf-file-upload:hover,
.tf-file-upload.is-dragover {
    border-color: var(--tf-atlantic-blue);
    background: rgba(30, 58, 95, 0.03);
}

.tf-file-upload__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.tf-file-upload__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--tf-gray-600);
    pointer-events: none;
}

.tf-file-upload__label svg {
    color: var(--tf-atlantic-blue);
}

.tf-file-upload__label span {
    font-size: 0.9rem;
    font-weight: 500;
}

.tf-file-upload__label small {
    font-size: 0.78rem;
    color: var(--tf-gray-500);
}

/* File list */
.tf-file-list {
    list-style: none;
    margin: var(--tf-space-sm) 0 0;
    padding: 0;
    text-align: left;
}

.tf-file-list li {
    font-size: 0.82rem;
    color: var(--tf-gray-700);
    padding: 0.25rem 0;
}

.tf-file-list li.is-oversized {
    color: var(--tf-error);
}

/* Form message */
.tf-form-message {
    display: none;
    padding: var(--tf-space-md);
    border-radius: var(--tf-radius);
    font-size: 0.9rem;
    margin-top: var(--tf-space-md);
}

.tf-form-message.is-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.tf-form-message.is-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* Mini form variant */
.tf-rfq-form--mini .tf-form-group label {
    font-size: 0.82rem;
}

.tf-rfq-form--mini .tf-form-group input,
.tf-rfq-form--mini .tf-form-group textarea {
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   30. RFQ Page Layout
   ========================================================================== */

.tf-rfq-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--tf-space-2xl);
    align-items: flex-start;
}

.tf-rfq-wrapper__form {
    min-width: 0; /* prevent grid blowout */
}

.tf-rfq-wrapper__sidebar {
    position: sticky;
    top: 100px;
}

.tf-sidebar-block {
    background: var(--tf-white);
    border: 1px solid var(--tf-gray-200);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-space-xl);
    margin-bottom: var(--tf-space-lg);
}

.tf-sidebar-block h3 {
    font-size: 1.1rem;
    margin: 0 0 var(--tf-space-lg);
    padding-bottom: var(--tf-space-sm);
    border-bottom: 2px solid var(--tf-gray-200);
}

.tf-sidebar-block__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: var(--tf-space-md);
    font-size: 0.88rem;
}

.tf-sidebar-block__item:last-child {
    margin-bottom: 0;
}

.tf-sidebar-block__item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--tf-gold);
    fill: currentColor;
}

.tf-sidebar-block__item strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tf-gray-600);
    margin-bottom: 0.15rem;
}

.tf-sidebar-block__item a {
    color: var(--tf-atlantic-blue);
    text-decoration: none;
}

.tf-sidebar-block__item a:hover {
    color: var(--tf-gold);
}

.tf-sidebar-block--urgent {
    background: linear-gradient(135deg, var(--tf-atlantic-blue), var(--tf-midnight-navy));
    border: none;
    color: var(--tf-white);
}

.tf-sidebar-block--urgent h4 {
    color: var(--tf-white);
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

/* ==========================================================================
   31. Contact Page
   ========================================================================== */

.tf-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tf-space-xl);
}

.tf-contact-item {
    background: var(--tf-white);
    border: 1px solid var(--tf-gray-200);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-space-xl);
    text-align: center;
    transition: all var(--tf-transition);
}

.tf-contact-item:hover {
    box-shadow: var(--tf-shadow-md);
    transform: translateY(-2px);
}

.tf-contact-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--tf-radius-full);
    background: rgba(30, 58, 95, 0.08);
    color: var(--tf-atlantic-blue);
    margin-bottom: var(--tf-space-md);
}

.tf-contact-item__icon svg {
    fill: currentColor;
}

.tf-contact-item h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.tf-contact-item a {
    color: var(--tf-gold);
    text-decoration: none;
    font-weight: 500;
}

.tf-contact-item a:hover {
    color: var(--tf-gold-hover);
}

.tf-contact-item span {
    color: var(--tf-gray-600);
    font-size: 0.9rem;
    line-height: var(--tf-line-height);
}

/* Contact form wrapper (2 cols) */
.tf-contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tf-space-2xl);
    align-items: flex-start;
}

.tf-contact-form-wrapper__intro h2 {
    font-size: 1.5rem;
    margin: 0 0 var(--tf-space-md);
}

.tf-contact-form-wrapper__intro p {
    font-size: 0.95rem;
    color: var(--tf-gray-600);
    line-height: var(--tf-line-height);
    margin: 0 0 var(--tf-space-md);
}

.tf-contact-form-wrapper__form {
    min-width: 0;
}

/* ==========================================================================
   32. Shared Utilities — Form notes, response notes
   ========================================================================== */

.tf-response-note {
    margin-top: var(--tf-space-lg);
    padding: var(--tf-space-md);
    background: var(--tf-bg-light);
    border-radius: var(--tf-radius);
    font-size: 0.85rem;
    color: var(--tf-gray-600);
    border-left: 3px solid var(--tf-gold);
}

.tf-urgent-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0 0 var(--tf-space-md);
}

.tf-form-note {
    padding: var(--tf-space-md);
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: var(--tf-radius);
    font-size: 0.88rem;
    color: var(--tf-gray-800);
    margin-bottom: var(--tf-space-lg);
}

.tf-form-note a {
    color: var(--tf-gold);
    font-weight: 500;
}

/* ==========================================================================
   33. Responsive — RFQ + Contact breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .tf-rfq-wrapper {
        grid-template-columns: 1fr;
    }

    .tf-rfq-wrapper__sidebar {
        position: static;
    }

    .tf-contact-form-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tf-form-row {
        grid-template-columns: 1fr;
    }

    .tf-contact-grid {
        grid-template-columns: 1fr;
    }

    .tf-sidebar-block__item strong {
        font-size: 0.75rem;
    }

    /* Hero — mobile */
    .tf-hero {
        min-height: 400px;
        padding: var(--tf-space-2xl) 0;
    }

    .tf-hero__title {
        font-size: 1.75rem;
    }

    .tf-hero__actions {
        flex-direction: column;
    }

    .tf-hero__actions .tf-btn {
        width: 100%;
    }
}

/* ==========================================================================
   34. Section Header
   ========================================================================== */

.tf-section__header {
    margin-bottom: var(--tf-space-2xl);
}

.tf-section__header p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: var(--tf-gray-600);
}

/* ==========================================================================
   35. Hero Section
   ========================================================================== */

.tf-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    background-color: var(--tf-midnight-navy);
    background-size: cover;
    background-position: center;
    padding: var(--tf-space-4xl) 0;
}

.tf-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(30, 58, 95, 0.85) 100%);
}

.tf-hero .tf-container {
    position: relative;
    z-index: 1;
}

.tf-hero__content {
    max-width: 720px;
}

.tf-hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--tf-white);
    margin-bottom: var(--tf-space-lg);
    line-height: var(--tf-line-height-tight);
}

.tf-hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--tf-space-2xl);
    line-height: var(--tf-line-height);
}

.tf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tf-space-md);
    margin-bottom: var(--tf-space-xl);
}

.tf-hero__note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* ==========================================================================
   36. Service Cards
   ========================================================================== */

.tf-card {
    background: var(--tf-white);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-space-2xl);
    border: 1px solid var(--tf-gray-200);
    transition: all var(--tf-transition);
}

.tf-card:hover {
    box-shadow: var(--tf-shadow-md);
    border-color: var(--tf-gold);
    transform: translateY(-2px);
}

.tf-card--service {
    text-align: center;
}

.tf-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--tf-radius-full);
    background: rgba(200, 151, 62, 0.1);
    color: var(--tf-gold);
    margin-bottom: var(--tf-space-lg);
}

.tf-card--service .tf-card__icon {
    margin-left: auto;
    margin-right: auto;
}

.tf-card__icon img {
    width: 40px;
    height: 40px;
}

.tf-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.tf-card__text {
    color: var(--tf-gray-600);
    font-size: 0.9375rem;
    margin-bottom: var(--tf-space-md);
}

.tf-link {
    color: var(--tf-gold);
    font-weight: 500;
    transition: color var(--tf-transition);
}

.tf-link:hover {
    color: var(--tf-gold-hover);
}

/* ==========================================================================
   37. Checklist
   ========================================================================== */

.tf-why-us {
    max-width: 800px;
    margin: 0 auto;
}

.tf-checklist {
    display: flex;
    flex-direction: column;
    gap: var(--tf-space-md);
    margin-top: var(--tf-space-xl);
}

.tf-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: var(--tf-space-md);
    font-size: 1rem;
    line-height: var(--tf-line-height-snug);
}

.tf-checklist__item svg {
    color: var(--tf-gold);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* ==========================================================================
   38. Process Steps
   ========================================================================== */

.tf-process-step {
    text-align: center;
    padding: var(--tf-space-xl);
}

.tf-process-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--tf-radius-full);
    background: var(--tf-gold);
    color: var(--tf-white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--tf-space-md);
}

.tf-process-step__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.tf-process-step__desc {
    color: var(--tf-gray-600);
    font-size: 0.9375rem;
}

/* ==========================================================================
   39. Industry Badges
   ========================================================================== */

.tf-industry-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: var(--tf-space-lg);
    text-align: center;
}

.tf-industry-badge__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--tf-radius-full);
    background: rgba(30, 58, 95, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-industry-badge__label {
    font-weight: 500;
    font-size: 0.9375rem;
}

/* ==========================================================================
   40. Stats
   ========================================================================== */

.tf-stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--tf-space-3xl);
}

.tf-stat {
    text-align: center;
    min-width: 160px;
}

.tf-stat__number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--tf-gold-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tf-stat__label {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   41. Responsive — Homepage (480px)
   ========================================================================== */

@media (max-width: 480px) {
    .tf-stats-grid {
        gap: var(--tf-space-xl);
    }

    .tf-stat {
        min-width: 120px;
    }
}

/* ==========================================================================
   42. About Page
   ========================================================================== */

.tf-content-area {
    max-width: 100%;
}

.tf-content-area--narrow {
    max-width: 800px;
}

.tf-subtitle {
    font-size: 1.125rem;
    color: var(--tf-gray-600);
    font-weight: 400;
    margin-bottom: var(--tf-space-lg);
}

.tf-aims-box {
    border-left: 4px solid var(--tf-gold);
    border-radius: 0 var(--tf-radius) var(--tf-radius) 0;
    padding: var(--tf-space-xl);
    background: var(--tf-white);
    margin-top: var(--tf-space-xl);
}

.tf-aims-box h4 {
    margin-bottom: var(--tf-space-md);
    color: var(--tf-atlantic-blue);
}

.tf-aims-box ul {
    padding-left: 1.25rem;
    margin: 0;
}

.tf-aims-box li {
    margin-bottom: var(--tf-space-sm);
    color: var(--tf-gray-700);
}

.tf-activity-card {
    background: var(--tf-white);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-space-2xl);
    border: 1px solid var(--tf-gray-200);
    transition: all var(--tf-transition);
}

.tf-activity-card:hover {
    box-shadow: var(--tf-shadow-md);
    border-color: var(--tf-gold);
    transform: translateY(-2px);
}

.tf-activity-card__code {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tf-gold);
    margin-bottom: var(--tf-space-sm);
}

.tf-activity-card h4 {
    margin-bottom: var(--tf-space-sm);
    color: var(--tf-atlantic-blue);
}

.tf-activity-card p {
    color: var(--tf-gray-600);
    font-size: 0.9375rem;
    margin: 0;
}

/* ==========================================================================
   43. Industry Cards
   ========================================================================== */

.tf-industry-card {
    background: var(--tf-white);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-space-2xl);
    border: 1px solid var(--tf-gray-200);
    transition: all var(--tf-transition);
}

.tf-industry-card:hover {
    box-shadow: var(--tf-shadow-md);
    border-color: var(--tf-gold);
}

.tf-industry-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--tf-radius);
    background: var(--tf-off-white);
    color: var(--tf-atlantic-blue);
    margin-bottom: var(--tf-space-lg);
}

.tf-industry-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--tf-space-sm);
}

.tf-industry-card p {
    color: var(--tf-gray-600);
    font-size: 0.9375rem;
    margin: 0;
}

/* ==========================================================================
   44. Search Results
   ========================================================================== */

.tf-search-results {
    display: flex;
    flex-direction: column;
}

.tf-search-result {
    padding: var(--tf-space-xl) 0;
    border-bottom: 1px solid var(--tf-gray-200);
}

.tf-search-result:first-child {
    padding-top: 0;
}

.tf-search-result__title {
    font-size: 1.125rem;
    margin-bottom: var(--tf-space-xs);
}

.tf-search-result__title a {
    color: var(--tf-atlantic-blue);
    text-decoration: none;
}

.tf-search-result__title a:hover {
    color: var(--tf-gold);
}

.tf-search-result__excerpt {
    color: var(--tf-gray-600);
    font-size: 0.9375rem;
    margin-bottom: var(--tf-space-sm);
}

/* ==========================================================================
   45. Language Switcher
   ========================================================================== */

.tf-lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tf-lang-switcher__link {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.125rem 0.5rem;
    border-radius: var(--tf-radius-sm);
    transition: color var(--tf-transition), background var(--tf-transition);
}

.tf-lang-switcher__link:hover {
    color: var(--tf-white);
}

.tf-lang-switcher__link.is-active {
    color: var(--tf-white);
    background: rgba(255, 255, 255, 0.15);
}

.tfgp-topbar__right .tf-lang-switcher {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}
