/* ==========================================================================
   SMACSS CSS Structure
   ==========================================================================
   1. BASE
   2. LAYOUT
   3. MODULES
   4. STATE
   5. UTILITIES
   6. MEDIA QUERIES
   ========================================================================== */

/* ==========================================================================
   1. BASE
   ========================================================================== */

@import url('base.css');


/* ==========================================================================
   2. LAYOUT
   ========================================================================== */
@import url('layout.css');


/* ==========================================================================
   3. MODULES
   ========================================================================== */

/* --- Botões --- */
.btn-primary {
    background-color: var(--purple-01);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--gap-sm) var(--gap-xl);
    font-weight: 600;
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--black-01);
    border: 1.5px solid var(--purple-03);
    border-radius: var(--radius-sm);
    padding: var(--gap-sm) var(--gap-xl);
    font-weight: 500;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--purple-01);
    border: 1.5px solid var(--purple-01);
    border-radius: var(--radius-sm);
    padding: var(--gap-sm) var(--gap-xl);
    font-family: 'Goldplay SemiBold', 'Goldplay', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    align-self: flex-start;
}

.btn-outline-primary .icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.avatar-badge img,
.avatar-badge svg {
    display: block;
    width: 25px;
    height: auto;
}



/* --- HERO --- */
.hero {
    height: 450px;
    position: relative;
}

.hero-media {
    width: 100%;
    height: 159.5px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 34.25px;
    margin-left: 0;
}

.hero-media img {
    width: 100%;
    height: 168.2px;
    object-fit: cover;
}

.hero-content {
    width: 100%;
    height: 195px;
    margin-top: 220.75px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

.hero-title {
    width: 244px;
    height: 120px;
}

/* --- BADGES DE SERVIÇOS --- */
.badges-section {
    height: 598px;
    padding: 25px 0;
}

.section-title {
    width: 100%;
    height: 70px;
    margin-bottom: var(--gap-lg);
}

.badges-grid {
    width: 100%;
    height: 405px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
    margin-bottom: var(--gap-xl);
}

.badge-item {
    width: 85px;
    height: 105px;
    background-color: var(--gray-02);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-sm);
    padding: var(--gap-sm);
}

.badge-item i {
    font-size: 24px;
    color: var(--purple-01);
}

.badge-item span {
    text-align: center;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-xs);
}

.view-all {
    width: 100%;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-sm);
    color: var(--purple-01);
    font-size: var(--font-size-sm);
}

/* --- CALCULADORA --- */
.calculator-section {
    height: 448px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calculator-content {
    width: 100%;
}

.calculator-title {
    width: 100%;
    height: 60px;
    margin-bottom: var(--gap-lg);
}

.calculator-description {
    width: 100%;
    height: 75px;
}

.calculator-image {
    width: 100%;
    height: 175.48px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.calculator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- CARROSSEL DE BANNERS --- */
.banners-section {
    height: 730px;
}

.banners-title {
    width: 100%;
    height: 140px;
    margin-bottom: var(--gap-xl);
}

.carousel {
    width: 100%;
    height: 241.15px;
    position: relative;
    overflow: hidden;
    margin-top: 400.42px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    width: 240px;
    height: 241.15px;
    flex-shrink: 0;
    margin-right: var(--gap-lg);
    background-color: var(--gray-01);
    border-radius: var(--radius-md);
    padding: var(--gap-lg);
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.carousel-slide.business {
    background-color: var(--purple-02);
}

.carousel-slide.referral {
    background-color: var(--orange-02);
}

.slide-badge {
    background-color: var(--white);
    padding: var(--gap-xs) var(--gap-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    width: fit-content;
}

.slide-title {
    font-weight: 600;
    font-size: var(--font-size-md);
}

.slide-description {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-sm);
}

.app-call {
    width: 191px;
    height: 208px;
    background-color: var(--yellow-02);
    border-radius: var(--radius-md);
    padding: var(--gap-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-sm);
    margin-top: -75px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BANNER LOCAÇÃO --- */
.rental-banner {
    height: 471px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-lg);
    padding: 23.5px 0;
}

.rental-image {
    width: 100%;
    height: 198px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.rental-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rental-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.rental-section-title {
    width: 178px;
    height: 39px;
    color: var(--purple-01);
    font-weight: 600;
}

.rental-headline {
    width: 281px;
    height: 80px;
    font-weight: 600;
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
}

.rental-description {
    width: 276px;
    height: 50px;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-sm);
}

/* --- CARROS --- */
.cars-section {
    height: 435px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-lg);
}

.cars-title {
    width: 100%;
    height: 60px;
}

.car-card {
    width: 240px;
    height: 290px;
    background-color: var(--gray-01);
    border-radius: var(--radius-md);
    padding: var(--gap-lg);
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.car-image {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-details {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
}

.car-name {
    font-weight: 600;
    font-size: var(--font-size-md);
}

.car-features {
    font-size: var(--font-size-xs);
    color: var(--black-02);
}

.car-price {
    font-weight: 600;
    font-size: var(--font-size-md);
    color: var(--purple-01);
}

.car-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-controls {
    width: 100%;
    height: 22.94px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-arrow {
    width: 22.94px;
    height: 22.94px;
    background-color: var(--gray-03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carousel-dots {
    width: 83px;
    height: 20px;
    display: flex;
    justify-content: center;
    gap: var(--gap-xs);
}

/* --- COMUNIDADE --- */
.community-section {
    height: 818px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-xl);
}

.community-visual {
    width: 100%;
    height: 279px;
    background-color: var(--purple-02);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg);
    position: relative;
    overflow: hidden;
}

.avatars {
    display: flex;
    gap: var(--gap-xs);
    margin-bottom: var(--gap-md);
}

.avatar {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--purple-01);
}

.avatar.large {
    width: 39px;
    height: 39px;
}

.thumbs {
    display: flex;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-md);
}

.thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.thumb.large {
    width: 77px;
    height: 97px;
}

.thumb.small {
    width: 63.78px;
    height: 73.05px;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.decorative-line {
    width: 71px;
    height: 2px;
    background-color: var(--purple-01);
    margin-bottom: var(--gap-sm);
}

.level-row {
    width: 55px;
    height: 10px;
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
}

.level-text {
    font-size: 10px;
    color: var(--purple-01);
}

.community-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

.community-title {
    width: 285px;
    height: 105px;
}

.community-description {
    width: 211px;
    height: 150px;
}

/* --- BLOG --- */
.blog-section {
    height: 476px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-xl);
}

.blog-header {
    width: 100%;
    height: 87.8px;
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
}

.blog-avatar {
    width: 88.5px;
    height: 88.5px;
    border-radius: 50%;
    background-color: var(--gray-02);
    overflow: hidden;
}

.blog-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-info {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
}

.blog-author {
    font-weight: 600;
    font-size: var(--font-size-md);
}

.blog-role {
    font-size: var(--font-size-xs);
    color: var(--black-02);
}

.blog-cards {
    width: 100%;
    height: 218px;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
}

.blog-card {
    background-color: var(--gray-01);
    border-radius: var(--radius-md);
    padding: var(--gap-lg);
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.blog-card-title {
    font-weight: 600;
    font-size: var(--font-size-md);
}

.blog-card-excerpt {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-sm);
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--black-02);
}

/* --- NEWSLETTER --- */
.newsletter-section {
    height: 552px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-xl);
    position: relative;
    overflow: hidden;
}

.newsletter-background {
    position: absolute;
    width: 100%;
    max-width: 434.4px;
    height: 161.13px;
    background-color: var(--purple-02);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.newsletter-headline {
    width: 267px;
    height: 50px;
    text-align: center;
}

.newsletter-box {
    width: 100%;
    height: 167px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--gap-xl);
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.newsletter-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--purple-03);
    border-radius: var(--radius-sm);
    padding: 0 var(--gap-md);
    font-size: var(--font-size-xs);
}

/* --- Módulos do Footer --- */

/* ==========================================================================
   4. STATE
   ========================================================================== */
.avatar-sheet[hidden] {
    display: none;
}

.avatar-sheet.is-open .avatar-overlay {
    opacity: 1;
}

.avatar-sheet.is-open .avatar-panel {
    transform: translateY(0);
}

.no-scroll {
    overflow: hidden;
}

/* Estados de foco e interação */
.header .currency-lang .dd.dd-toggle:focus {
    outline: 2px solid var(--purple-02);
    border-radius: 8px;
}

.header .search-submit:focus {
    outline: none;
}

.header .search-submit:focus-visible {
    outline: 2px solid var(--purple-02);
    border-radius: 50%;
}

.avatar-panel:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--purple-02) inset;
}

.footer a:focus-visible,
.footer button:focus-visible,
.social-icon-link:focus-visible {
    outline: 2px solid var(--purple-02);
    outline-offset: 2px;
    border-radius: 8px;
}

.btn-outline-primary:focus-visible {
    outline: 3px solid rgba(125, 85, 198, 0.35);
    outline-offset: 2px;
}

.footer-cta-button:focus-visible {
    outline: 3px solid rgba(125, 85, 198, 0.35);
    outline-offset: 2px;
}

.footer-legal .legal-links a:focus-visible {
    outline: 2px solid var(--gray-03);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ==========================================================================
   5. UTILITIES
   ========================================================================== */
/* Debug e utilitários gerais */
body.debug-borders section,
body.debug-borders footer {
    border-bottom: 2px dashed rgba(125, 85, 198, 0.6);
    padding-bottom: 8px;
}

.bb {
    border-bottom: 1px solid #000;
}

/* Tipografia */
.text-regular {
    font-family: 'Goldplay', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-sm);
}

.text-medium {
    font-family: 'Goldplay Medium', 'Goldplay', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-xs);
    align-items: flex-start;
}

.text-bold {
    font-family: 'Goldplay Medium', 'Goldplay', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 800;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-xs);
    align-items: flex-start;
}

.text-semibold {
    font-family: 'Goldplay SemiBold', 'Goldplay', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-xs);
}

/* Utilitário de acessibilidade */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   6. MEDIA QUERIES
   ========================================================================== */
@supports (-webkit-touch-callout: none) {
    .header .search-bar input:focus {
        font-size: 16px;
        line-height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .avatar-overlay {
        transition: none;
    }

    .avatar-panel {
        transition: none;
    }
}

/* Microajustes mobile: 320–359px */
@media (max-width: 359.98px) {
    .currency-lang {
        left: 60.5%;
        top: 28px;
        gap: 8px;
    }

    .header .search-bar::before {
        top: -10px;
    }
}

/* Microajustes mobile: 360–575.98px */
@media (min-width: 360px) and (max-width: 575.98px) {
    .currency-lang {
        left: 61%;
        top: 28px;
        gap: 9px;
    }

    .header .search-bar {
        margin-top: 12px;
    }
}



/* Oculta user-info apenas no mobile */
@media (max-width: 991.98px) {
    .header .user-info {
        display: none !important;
    }
}

/* Small screens (576px-767px) */
@media (min-width: 576px) and (max-width: 767.98px) {

    .header .header-top,
    .header .header-divider,
    .header .search-bar {
        max-width: 767px;
        width: 85%;
        /* igual ao .container-sm do Bootstrap */
    }
}

@media (min-width: 768px) and (max-width: 1023.98) {

    .givos-container {
        max-width: 1023px;
    }

}

/* ==========================================================================
   USER MENU DROPDOWN (Desktop)
   ========================================================================== */
.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-03);
    overflow: hidden;
}

.user-dropdown-panel {
    padding: 16px 0;
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px 16px;
    border-bottom: 1px solid var(--gray-03);
}

.user-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--black-01);
    margin-bottom: 2px;
}

.user-email {
    font-size: 12px;
    color: var(--gray-02);
}

.user-dropdown-menu {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--black-01);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--gray-01);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--purple-01);
}