/*
Theme Name:   Ultimate Finish LKN (Child)
Theme URI:    https://ultimatefinishlkn.com 
Description:  Industrial Luxury Child Theme. Optimized for Core Web Vitals.
Author:       Ultimate Finish
Template:     bricks
Version:      1.0.1
*/

/* DESIGN TOKENS (CSS Variables for Bricks) 
   These enforce the "Ultimate Finish Blue" system globally.
*/
:root {
    --uf-blue: #2563EB;
    --uf-dark: #111827;
    --text-main: #F3F4F6;
}

/* Global Overrides */
body {
    background-color: var(--uf-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif; /* Critical Fallback */
}

/* Additional Ultimate Finish Design System Styles */
.uf-hero {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.uf-card {
    background: var(--uf-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.uf-card:hover {
    border-color: var(--uf-blue);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.uf-btn-primary {
    background: var(--uf-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: skew(-12deg);
    display: inline-block;
    transition: all 0.3s ease;
}

.uf-btn-primary:hover {
    background: #1d4ed8;
    transform: skew(-12deg) scale(1.05);
}

.uf-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-muted);
    background: transparent;
    padding: 12px 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: skew(-12deg);
    display: inline-block;
    transition: all 0.3s ease;
}

.uf-btn-secondary:hover {
    border-color: white;
    color: white;
}

/* --- HERO CTA ----------------------------------------------------------
   Used on one button only: "Book Protocol" in the hero. Everything else on
   the site uses .btn-uf / the standard Tailwind CTA treatment.

   Based on a Uiverse component by adamgiebl, with the original's rotating
   translucent sliver removed -- it sat visibly on the button at rest. The
   fill now sweeps straight in from the left and nothing shows when idle.
   Scoped to a class (the original styled every <button> on the page) and
   works on <a>. Requires an empty <span> child, which carries the border
   and the fill. */
.uf-cta {
    --cta-accent: var(--uf-blue, #2563EB);
    position: relative;
    display: inline-block;
    padding: 0.9em 2.6em;
    border: none;
    background: transparent;
    color: var(--cta-accent);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s;
}

.uf-cta > span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 3px solid var(--cta-accent);
    z-index: -1;
}

/* Fill sweeps straight in from the left. Nothing is visible at rest --
   no translucent diagonal sitting on the button when it is idle. */
.uf-cta > span::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--cta-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.uf-cta:hover > span::before {
    transform: scaleX(1);
}

.uf-cta:hover {
    color: #fff;
}

.uf-cta:active > span::before {
    background: #1d4ed8;
}

/* Light variant for use on the blue/blown-out sections */
.uf-cta.on-accent {
    --cta-accent: #fff;
}

.uf-cta.on-accent:hover {
    color: var(--uf-blue, #2563EB);
}

@media (prefers-reduced-motion: reduce) {
    .uf-cta > span::before,
    .uf-cta:hover > span::before {
        transition: none;
    }
}

/* Typography */
.uf-display {
    font-family: "Eurostile Extended", "Arial Black", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.uf-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: -0.05em;
}

/* Utility Classes */
.uf-glass {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.uf-shine {
    position: relative;
    overflow: hidden;
}

.uf-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg) translateX(-150%);
    transition: transform 0.5s;
}

.uf-shine:hover::after {
    transform: skewX(-20deg) translateX(150%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .uf-hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .uf-btn-primary,
    .uf-btn-secondary {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* Animation Keyframes */
@keyframes uf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.uf-pulse {
    animation: uf-pulse 2s infinite;
}

/* Grid System */
.uf-grid {
    display: grid;
    gap: 2rem;
}

.uf-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.uf-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Service Cards */
.uf-service-card {
    background: var(--uf-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
}

.uf-service-card:hover {
    border-color: var(--uf-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

/* Trust Indicators */
.uf-trust-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.uf-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.uf-rating .stars {
    color: var(--uf-blue);
    font-size: 1.125rem;
}

.uf-rating .score {
    color: white;
    font-weight: bold;
}

.uf-certifications {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.uf-certifications .highlight {
    color: white;
    font-weight: bold;
}

/* Section Styling */
.uf-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.uf-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.uf-section-subtitle {
    color: var(--uf-blue);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.uf-section-title {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    margin-bottom: 2rem;
}

/* Footer Integration */
.uf-footer {
    background: var(--uf-card);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.uf-footer p {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* WordPress Integration */
.wp-block-group.uf-section {
    padding: 6rem 0;
}

.has-uf-blue-background-color {
    background-color: var(--uf-blue);
}

.has-uf-dark-background-color {
    background-color: var(--uf-dark);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .uf-btn-primary,
    .uf-btn-secondary {
        background: none !important;
        color: black !important;
        border: 1px solid black !important;
    }
}
