/* === HEADER === */
.top-bar {
    display: none;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    padding: 0;
}

.header .container {
    padding-top: 14px;
    padding-bottom: 14px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
}

/* Logo + tagline lado a lado */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.logo img {
    height: 112px;
    width: auto;
}

.logo-tagline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 240px;
}

.logo-tagline span {
    font-size: 13px;
    font-weight: 700;
    color: #f0f0f0;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Remove a barrinha inline (tagline fica ao lado da logo) */
.header-tagline-inline {
    display: none;
}

/* Olhos da pantera: bloco pequeno e nitido (nao esticado), centralizado
   no espaco vazio entre a logo e os icones. Mascara radial dissolve as
   bordas no preto do header, em vez de aparecer como "quadrado de foto". */
.header-pantera {
    flex-shrink: 0;
    width: 260px;
    height: 110px;
    max-width: 32vw;
    background: url('/panteranova.png') no-repeat 73% 46% / 150%;
    margin: 0 auto;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 49%, transparent 92%);
    mask-image: radial-gradient(ellipse at center, #000 49%, transparent 92%);
}

/* === HEADER ACTIONS === */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.btn-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: none;
    color: #f5f5f5;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    text-decoration: none;
}

.btn-header-icon:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #1a1a1a;
}

.btn-header-icon--whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.btn-header-account {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--color-accent);
    background: var(--color-accent);
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    text-decoration: none;
}

.btn-header-account:hover {
    background: transparent;
    color: var(--color-accent);
}

/* === SEARCH OVERLAY === */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: flex-start;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-overlay-form {
    flex: 1;
    position: relative;
}

.search-overlay-form input {
    width: 100%;
    padding: 16px 52px 16px 20px;
    background: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 16px;
    color: var(--color-text);
    box-shadow: var(--shadow-lg);
    outline: none;
}

.search-overlay-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-accent);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1a1a1a;
}

.search-overlay-close {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
    transition: all var(--transition);
}

.search-overlay-close:hover {
    background: rgba(255,255,255,0.25);
}

/* === BARRA DE CATEGORIAS === */
.categories-bar {
    background: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    position: sticky;
    top: 120px;
    z-index: 99;
}

.categories-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: visible;
    scrollbar-width: none;
    padding: 10px 0;
}

.categories-list::-webkit-scrollbar {
    display: none;
}

.categories-list li {
    position: relative;
}

.categories-list li a {
    display: block;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.categories-list li a:hover,
.categories-list li a.active {
    background: rgba(0,0,0,0.12);
    color: #000;
}

.categories-list .cat-separator {
    width: 1px;
    height: 16px;
    background: var(--color-border);
    margin: 0 8px;
}

.cat-dropdown-toggle {
    display: none;
}

.categories-list .has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid currentColor;
    margin-left: 5px;
    vertical-align: middle;
}

.cat-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 160px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all var(--transition);
    z-index: 200;
    box-shadow: var(--shadow-lg);
}

.categories-list .has-dropdown:hover > .cat-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cat-dropdown li a {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
}

.cat-dropdown--material {
    min-width: 220px;
    padding: 16px;
}

.cat-dropdown-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    padding: 0 0 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--color-border-light);
}

.cat-dropdown--material li a {
    padding: 9px 4px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-secondary);
}

.cat-dropdown--material li a:hover {
    background: none;
    color: var(--color-accent);
}

.cat-dropdown li a:hover {
    background: var(--color-muted);
}

/* === SUBMENU (3o nivel: Carroceria > Material) === */
.cat-dropdown--carroceria .has-subdropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 3px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
}

.has-subdropdown > .cat-dropdown--material {
    top: 0;
    left: calc(100% + 4px);
}

.has-subdropdown:hover > .cat-dropdown--material {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* === MENU TOGGLE === */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* === SECTION HEADERS === */
section {
    padding: 56px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.section-header p {
    color: var(--color-text-secondary);
    margin-top: 2px;
    font-size: 14px;
}

.section-header a {
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 500;
}

.section-header a:hover {
    text-decoration: underline;
}

/* === MENU TOGGLE (sobre o header preto) === */
.menu-toggle span {
    background: #ffffff;
}

/* === CATEGORIAS MENU UPPERCASE === */
.categories-list > li > a {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cat-dropdown .cat-sub a {
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-secondary);
    padding-left: 24px;
}

/* === TESTIMONIALS CAROUSEL === */
.testimonials-carousel {
    position: relative;
    min-height: 180px;
}

.testimonials-carousel .testimonial-card {
    display: none;
}

.testimonials-carousel .testimonial-card.active {
    display: block;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.testimonials-arrow {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.testimonials-arrow:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.testimonials-dots {
    display: flex;
    gap: 8px;
}

.testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}

.testimonials-dot.active {
    background: var(--color-accent);
    width: 24px;
    border-radius: 4px;
}

/* === LOGOS MARQUEE === */
.clientes-marquee-wrap {
    overflow: hidden;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clientes-marquee {
    display: flex;
    gap: 32px;
    width: max-content;
}

.clientes-marquee--left {
    animation: marquee-left 30s linear infinite;
}

.clientes-marquee--right {
    animation: marquee-right 30s linear infinite;
}

@keyframes marquee-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.cliente-logo-item {
    flex-shrink: 0;
    height: 56px;
    display: flex;
    align-items: center;
}

.cliente-logo-item img {
    height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition);
}

.cliente-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.clientes-marquee-wrap:hover .clientes-marquee {
    animation-play-state: paused;
}
