/* Phone button in header - Black button that inverts on hover */
header .btn-primary {
    background: var(--finesse-black) !important;
    border: 2px solid var(--finesse-black) !important;
    color: var(--finesse-white) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    transition: all 0.4s ease;
}

header .btn-primary:hover {
    background: var(--finesse-white) !important;
    border-color: var(--finesse-black) !important;
    color: var(--finesse-black) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 0, 0, 0.2);
}

/* Phone icon color */
header .btn-primary span[aria-hidden="true"] {
    transition: all 0.4s ease;
}

/*
==================================
FINESSE AUTO BODY - CUSTOM BRANDING
==================================
Racing-inspired design matching the logo
*/

:root {
    /* Brand Colors - Racing Theme */
    --finesse-black: #000000;
    --finesse-white: #FFFFFF;
    --finesse-silver: #C0C0C0;
    --finesse-gray: #333333;
    --finesse-light-gray: #F5F5F5;
    --finesse-red: #DC3545;  /* Accent color for CTAs */
    --finesse-blue: #0D6EFD;  /* Professional blue for call button */
    
    /* Racing-inspired gradients */
    --finesse-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    
    /* Override Bootstrap primary blue */
    --bs-primary: #000000;
    --bs-primary-rgb: 0, 0, 0;
}

/* ==============================
   TOP ADDRESS BAR - NEW
   ============================== */

.top-address-bar {
    background: var(--finesse-black);
    color: var(--finesse-white);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--finesse-gray);
    font-weight: 500;
}

.top-address-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--finesse-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-address-link:hover {
    color: var(--finesse-silver);
    transform: translateY(-1px);
}

.top-address-bar i {
    color: var(--finesse-white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.top-address-link:hover i {
    color: var(--finesse-silver);
}

/* Mobile - slightly smaller text */
@media (max-width: 767px) {
    .top-address-bar {
        font-size: 0.95rem;
    }
    
    .top-address-bar i {
        font-size: 0.95rem;
    }
}

/* ==============================
   FULL-SIZE HERO SECTION - NEW
   ============================== */

.homepage-hero-fullsize {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-background {
    position: relative;
    width: 100%;
    min-height: 600px;
    height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay - 50% opacity */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Content layer above overlay */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3rem 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content .lead {
    font-size: 1.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Hero CTA button - Blue with enhanced visibility */
.hero-content .btn-primary {
    background: var(--finesse-blue) !important;
    border: 2px solid var(--finesse-blue) !important;
    color: var(--finesse-white) !important;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
}

.hero-content .btn-primary:hover {
    background: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.6);
}

/* Video background specific styles */
.hero-video-background {
    background-image: none !important;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Ensure overlay and content are above video */
.hero-video-background .hero-overlay {
    z-index: 1;
}

.hero-video-background .hero-content {
    z-index: 2;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .hero-background {
        min-height: 350px;
        height: 50vh !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .hero-content .btn-primary {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
    
    /* Optional: Disable video on mobile to save data */
    /* Uncomment these lines if you want image-only on mobile */
    /*
    .hero-video {
        display: none;
    }
    
    .hero-video-background {
        background-size: cover;
        background-position: center;
    }
    */
}

@media (max-width: 575px) {
    .hero-background {
        min-height: 450px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
}

/* ==============================
   HEADER & NAVIGATION
   ============================== */

/* Header with white background */
header#header {
    background: var(--finesse-white);
    border-bottom: 3px solid var(--finesse-light-gray);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Navigation bar */
.navbar {
    background: var(--finesse-white) !important;
    padding: 1rem 0;
}

/* Logo styling - Desktop (full width logo) */
.navbar-brand img {
    height: 110px;  /* Increased from 95px (+15%) */
    width: auto;   /* Auto width to maintain aspect ratio */
    max-width: none;  /* Remove width restriction */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

/* Mobile logo - horizontal badge (not circular) */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 92px !important;  /* Increased from 80px (+15%) */
        width: auto !important;   /* Auto width for aspect ratio */
        max-width: 345px !important;  /* Increased from 300px (+15%) */
    }
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Main menu links */
.navbar-nav .nav-link {
    color: var(--finesse-black) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1.25rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

/* Menu link hover - Black underline effect */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--finesse-black) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--finesse-black);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Active menu item */
.navbar-nav .nav-link.active {
    color: var(--finesse-black) !important;
    background: transparent;
    font-weight: 700;
}

/* Mobile menu toggle */
.navbar-toggler {
    border: 2px solid var(--finesse-black);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==============================
   BUTTONS - RACING STYLE
   ============================== */

/* Primary button - Racing inspired */
.btn-primary {
    background: var(--finesse-red) !important;
    border: 2px solid var(--finesse-red) !important;
    color: var(--finesse-white) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-primary:hover {
    background: #C82333 !important;
    border-color: #C82333 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Outline button */
.btn-outline-primary {
    border: 2px solid var(--finesse-red) !important;
    color: var(--finesse-red) !important;
    background: transparent !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--finesse-red) !important;
    color: var(--finesse-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Light button for dark backgrounds */
.btn-light {
    background: var(--finesse-white) !important;
    border: 2px solid var(--finesse-white) !important;
    color: var(--finesse-black) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: var(--finesse-silver) !important;
    border-color: var(--finesse-silver) !important;
    color: var(--finesse-black) !important;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--finesse-white) !important;
    color: var(--finesse-white) !important;
    background: transparent !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--finesse-white) !important;
    color: var(--finesse-black) !important;
    transform: translateY(-2px);
}

/* ==============================
   ACTION GRID - MODERN REDESIGN
   ============================== */

.action-grid {
    background: var(--finesse-white);
    padding: 4rem 0;
}

.action-grid h2 {
    color: var(--finesse-black);
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.action-box {
    background: var(--finesse-white);
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    padding: 3rem 2rem;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.action-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--finesse-black);
}

/* Icon styling - Always Black */
.action-box i {
    color: var(--finesse-black);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.action-box:hover i {
    transform: scale(1.1);
}

/* Title */
.action-box h3 {
    color: var(--finesse-black);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: none;
}

/* Description */
.action-box p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Button in action box - Transparent to Gradient */
.action-box .btn {
    width: 100%;
    max-width: 280px;
    background: transparent !important;
    border: 2px solid var(--finesse-black) !important;
    color: var(--finesse-black) !important;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.action-box .btn:hover {
    background: var(--finesse-gradient) !important;
    border-color: var(--finesse-black) !important;
    color: var(--finesse-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Remove default link styling */
.action-box a {
    text-decoration: none;
}

/* ==============================
   SERVICES SECTION - BLACK/GREY THEME
   ============================== */

.service-card {
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--finesse-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--finesse-black);
}

.service-card i {
    color: var(--finesse-black);
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--finesse-black);
    font-weight: 700;
}

/* ==============================
   FINAL CTA SECTION
   ============================== */

.final-cta {
    background: var(--finesse-gradient) !important;
    color: var(--finesse-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.final-cta h2 {
    color: var(--finesse-white);
    font-weight: 900;
}

/* ==============================
   FOOTER - RACING THEME
   ============================== */

.site-footer {
    background: var(--finesse-black) !important;
    color: var(--finesse-white);
    border-top: 4px solid var(--finesse-silver);
}

.site-footer h3 {
    color: var(--finesse-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.site-footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--finesse-red);
}

.footer-menu a {
    color: var(--finesse-silver) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-menu a:hover {
    color: var(--finesse-white) !important;
    transform: translateX(5px);
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    border-top-color: var(--finesse-gray) !important;
}

.social-links a {
    color: var(--finesse-white) !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--finesse-red) !important;
    transform: translateY(-3px) scale(1.1);
}

/* ==============================
   CERTIFICATIONS SECTION
   ============================== */

.certifications-section {
    background: var(--finesse-white);
    border-top: 2px solid var(--finesse-silver);
    border-bottom: 2px solid var(--finesse-silver);
}

.certifications-section h2 {
    color: var(--finesse-black);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-logo {
    transition: all 0.3s ease;
    filter: grayscale(0%);
}

.cert-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0%) drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--finesse-black);
    border-radius: 50%;
    padding: 20px;
}

/* ==============================
   FORMS
   ============================== */

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.gform_wrapper select {
    border: 2px solid var(--finesse-light-gray);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
    border-color: var(--finesse-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    outline: none;
}

.gform_wrapper .gform_button {
    background: var(--finesse-red) !important;
    border: 2px solid var(--finesse-red) !important;
    color: var(--finesse-white) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.gform_wrapper .gform_button:hover {
    background: #C82333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* ==============================
   RACING ACCENTS
   ============================== */

/* Checkered flag pattern for decorative elements */
.checkered-accent {
    background-image: 
        repeating-linear-gradient(
            45deg,
            var(--finesse-black) 0px,
            var(--finesse-black) 10px,
            var(--finesse-white) 10px,
            var(--finesse-white) 20px
        );
    height: 5px;
    width: 100%;
}

/* Racing stripe */
.racing-stripe {
    height: 4px;
    background: var(--finesse-gradient);
    position: relative;
    overflow: hidden;
}

.racing-stripe::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: racing-shine 3s infinite;
}

@keyframes racing-shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ==============================
   MOBILE RESPONSIVE
   ============================== */

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--finesse-light-gray);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        border: 2px solid var(--finesse-silver);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--finesse-silver);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* ==============================
   UTILITY CLASSES
   ============================== */

/* Override Bootstrap primary blue to black */
.text-primary {
    color: var(--finesse-black) !important;
}

.bg-primary {
    background-color: var(--finesse-black) !important;
}

.btn-primary:not(header .btn-primary):not(.action-box .btn):not(.hero-content .btn-primary) {
    background-color: var(--finesse-black) !important;
    border-color: var(--finesse-black) !important;
}

.border-primary {
    border-color: var(--finesse-black) !important;
}

.bg-finesse-black { background: var(--finesse-black) !important; }
.bg-finesse-gradient { background: var(--finesse-gradient) !important; }
.text-finesse-red { color: var(--finesse-red) !important; }
.text-finesse-silver { color: var(--finesse-silver) !important; }
.border-finesse-red { border-color: var(--finesse-red) !important; }

/* Racing-themed shadows */
.shadow-racing {
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
}

/* Performance lines decoration */
.performance-lines {
    position: relative;
    padding-left: 20px;
}

.performance-lines::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--finesse-gradient);
    border-radius: 2px;
}

/* ==============================
   MOBILE LAYOUT FIXES - NEW
   ============================== */

/* Hide phone button in header on mobile */
@media (max-width: 991px) {
    header .btn-primary {
        display: none !important;
    }
    
    /* Reorder header: hamburger left, logo center */
    .navbar {
        position: relative;
    }
    
    .navbar > .container-xl {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        min-height: 70px;
    }
    
    /* Hamburger menu - position absolute left with padding */
    .navbar-toggler {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
    
    /* Logo - center with flex */
    .navbar-brand {
        margin: 0;
        position: relative;
    }
    
    /* Collapse takes full width below */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 9;
    }
}

/* Hero section mobile adjustments - Remove button overlap */
@media (max-width: 767px) {
    /* Hero already sized correctly above at 60vh */
}

/* Let's Get Started Section - REMOVED (already exists in action-grid) */

/* Floating Phone Button - Mobile Only */
.floating-phone-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-phone-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.floating-phone-button i {
    font-size: 28px;
    color: var(--finesse-white);
}

/* Hide floating button on desktop */
@media (min-width: 992px) {
    .floating-phone-button {
        display: none !important;
    }
}

/* Adjust for very small screens */
@media (max-width: 575px) {
    .floating-phone-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-phone-button i {
        font-size: 24px;
    }
}
