:root {
    --primary-orange: #FF5C00;
    --secondary-orange: #d34f03;
    --bg-tertiary-orange: #962f2f;
}

body {
    font-family: 'Roboto', sans-serif;
}

.header-logo img {
    width: 300px;
    height: auto;
    margin-top: -33px;
}

.hero-title {
    font-family: 'Amaranth', monospace;
    padding-top: 100px;
    background: url('../img/BHCABINES.png') no-repeat 0px 0px;
    background-size: contain;
    line-height: .8 !important;
}

.welcome-title {
    font-family: 'Amaranth', monospace;
}

.policies-section {
    background-color: #ffffff;
}

.policies-section .feature-title {
    font-family: 'Amaranth', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-orange);
}

.policies-section h3 {
    font-family: 'Amaranth', monospace;
}

.bg-primary-orange {
    background-color: var(--primary-orange);
}

.text-primary-orange {
    color: var(--primary-orange);
}

.border-primary-orange {
    border-color: var(--primary-orange);
    padding: 10px 20px;
    border-radius: 4px;
}

.bg-secondary-orange {
    background-color: var(--secondary-orange);
}

.text-secondary-orange {
    color: var(--secondary-orange);
}

.bg-tertiary-orange {
    background-color: var(--bg-tertiary-orange);
}

.text-tertiary-orange {
    color: var(--bg-tertiary-orange);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/truck.png') no-repeat center;
    background-size: cover;
    min-height: 600px;
}

.quote-form {
    margin-top: -200px;
    background: #f3f3f3;
    border-radius: 0;
    padding: 20px;
    z-index: 10;
}

.quote-form h3,
.quote-form h4 {
    font-family: 'Amaranth', monospace;
}

.quote-form textarea {
    resize: none;
    height: 200px;
}

.truck-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.features-section {
    background-color: #1E2A3B;
}

.features-section h3 {
    font-family: 'Amaranth', monospace;
}

.feature-number {
    color: var(--primary-orange);
    font-size: 2.5rem;
    font-weight: bold;
}

.televendas-section {
    background: linear-gradient(to bottom, var(--primary-orange), var(--secondary-orange));
}

.televendas-section h3,
.televendas-section p {
    font-family: 'Amaranth', monospace;
}

.attendant-image {
    width: auto;
    height: 450px;
    margin-top: -80px !important;
}

.btn-big {
    background-color: var(--primary-orange);
    color: white;
    padding: 15px 30px;
    border-radius: 0 0 20px 0;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color .3s;
}

.btn-big:hover {
    background-color: var(--secondary-orange);
}

.carrer-section {
    background-image: url('../img/trabalhe-bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 75% 50%;
}

.carrer-section h3 {
    font-family: 'Amaranth', monospace;
}

.culture-box {
    margin-left: -450px;
}

.detailed-view h3 {
    font-family: 'Amaranth', monospace;
}

.truck-card {
    position: relative;
    cursor: pointer;
}

.truck-card h4 {
    position: absolute;
    font-family: 'Amaranth', monospace;
    font-size: 1.7rem;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    z-index: 10;
}

.card-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.phonebar {
    position: absolute;
    width: auto;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    right: 10px;
}

.phone-text {
    font-family: 'Amaranth', monospace;
}

.footer {
    background: url('../img/mapa.png') no-repeat right center;
    background-size: contain;
}

.footer p,
.footer h4 {
    font-family: 'Amaranth', monospace;
}

.whatsapp-float {
    position: fixed;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 20px 0 16px;
    overflow: hidden;
    width: 60px;
}

.whatsapp-float:hover {
    width: 240px;
    background-color: #20ba59;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.5;
    z-index: -1;
    left: 0;
}

.whatsapp-text {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.instagram-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: #f3f4f6;
}

.instagram-item::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.instagram-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.instagram-item:hover .instagram-overlay i {
    transform: translateY(0);
}

.loading-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .loading-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.loading-grid>div {
    position: relative;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
}

.loading-grid>div::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.error-message {
    text-align: center;
    padding: 2rem;
}

.error-message a {
    color: var(--primary-orange);
    font-weight: 500;
    transition: color 0.2s;
}

.error-message a:hover {
    color: var(--secondary-orange);
}

/* Media Queries para Responsividade */
@media (max-width: 1024px) {
    .header-logo img {
        width: 200px;
        margin-top: -20px;
    }

    .hero-title {
        font-size: 2.5rem;
        padding-top: 80px;
    }

    .welcome-title {
        font-size: 2.5rem;
    }

    .quote-form {
        margin-top: 0;
        margin-left: 0;
    }

    .culture-box {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-section {
        min-height: 400px;
    }

    .hero-title {
        font-size: 2rem;
        padding-top: 60px;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .phonebar {
        display: none;
    }

    .socialbar {
        display: none;
    }

    nav .flex {
        flex-direction: column;
        align-items: flex-start;
    }

    nav .flex .flex {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    nav .flex .flex a {
        margin: 0.5rem 0;
    }

    .btn-big {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .quote-form {
        margin-top: 2rem;
    }

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

    .attendant-image {
        height: 300px;
        margin-top: 0 !important;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.8rem;
        padding-top: 40px;
    }

    .welcome-title {
        font-size: 1.8rem;
    }

    .brands-section .grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 15px;
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-float i {
        font-size: 24px;
    }

    .truck-card img {
        height: 150px;
    }

    .truck-card h4 {
        font-size: 1.4rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .btn-big {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Ajustes para orientação paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 300px;
    }

    .hero-title {
        padding-top: 20px;
    }

    .attendant-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .features-section .grid,
    .policies-section .grid,
    .footer .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .attendant-image {
        width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    section, .features-section, .policies-section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .py-16, .md\:py-16, .py-8, .md\:py-8 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .mb-12, .md\:mb-12, .mb-8, .md\:mb-8 {
        margin-bottom: 1.5rem !important;
    }
    .mt-4, .md\:mt-4, .mt-8, .md\:mt-8 {
        margin-top: 1.5rem !important;
    }
    .footer {
        border-top: 1px solid #e5e7eb;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
