/* Custom Honda Branding Styles */
:root {
    --honda-red: #E40521;
    --honda-dark: #1A1A1A;
}

body {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Typography */
.site-header .site-nav-link {
    font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.site-header .site-cta {
    font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.site-header .mobile-nav-link {
    font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.site-header .mobile-cta {
    font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #E40521;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b3041a;
}

/* Hero Section Shapes */
.hero-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    background: linear-gradient(135deg, rgba(228, 5, 33, 0.16) 0%, rgba(228, 5, 33, 0.03) 48%, rgba(228, 5, 33, 0) 100%);
    clip-path: polygon(24% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 5;
    pointer-events: none;
}

.hero-grid-lines {
    background-image:
        linear-gradient(rgb(255, 255, 255) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255, 255, 255) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 92%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 92%);
}

.hero-featured-carousel {
    position: relative;
    min-height: 28rem;
}

.hero-featured-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
    pointer-events: none;
}

.hero-featured-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-featured-link {
    border-radius: 1.5rem;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.hero-featured-link:hover {
    transform: translateY(-2px);
}

.hero-featured-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 8px;
}

.hero-featured-image {
    height: 19rem;
    object-fit: contain;
}

.hero-featured-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.28);
    transition: all 0.3s ease;
}

.hero-featured-dot.is-active {
    width: 2.25rem;
    background: #E40521;
}

.hero-featured-nav {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero-featured-nav:hover {
    background: rgba(228, 5, 33, 0.9);
    border-color: rgba(228, 5, 33, 0.9);
}

.hero-featured-nav:active {
    transform: scale(0.95);
}

.floating-contact-bar {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%);
}

.floating-contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 54px;
    padding-right: 10px;
    margin-right: -10px;
    border-radius: 16px 0 0 16px;
    background: #E40521;
    color: #ffffff;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    box-shadow: 0 16px 30px rgba(228, 5, 33, 0.24);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-contact-button:hover {
    background: #c9041d;
    transform: translateX(-4px);
    box-shadow: 0 18px 34px rgba(228, 5, 33, 0.32);
}

.floating-contact-button:focus-visible {
    outline: 3px solid rgba(228, 5, 33, 0.22);
    outline-offset: -6px;
}

.floating-contact-icon,
.floating-contact-icon-image {
    width: 24px;
    height: 24px;
}

.floating-contact-icon-image {
    object-fit: contain;
}

/* Legacy YouTube background video (Hero) */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-video-embed {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh; /* 16:9 cover */
    height: 56.25vw; /* 16:9 cover */
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
    .hero-video-wrap {
        display: none;
    }
}

@media (max-width: 1023px) {
    .hero-bg-shape {
        width: 100%;
        clip-path: polygon(100% 0%, 100% 38%, 54% 100%, 0% 100%, 0% 0%);
        opacity: 0.7;
    }

    .hero-grid-lines {
        background-size: 88px 88px;
    }

    .hero-featured-carousel {
        min-height: 32rem;
    }
}

@media (max-width: 767px) {
    .floating-contact-bar {
        right: 0;
        top: 50%;
        bottom: auto;
        flex-direction: column;
        transform: translateY(-50%);
    }

    .floating-contact-button {
        width: 60px;
        height: 50px;
        padding-right: 10px;
        margin-right: -10px;
        border-radius: 16px 0 0 16px;
    }

    .hero-featured-carousel {
        min-height: 20rem;
    }

    .hero-featured-image {
        height: 14rem;
    }
}
