/*
 Theme Name: CarListings Child
 Theme URI: https://hsautomoveis.pt/
 Description: Child theme for the CarListings theme.
 Author: Renato Pires
 Author URI: https://hsautomoveis.pt/
 Template: carlistings
 Version: 1.0.0
 Text Domain: carlistings-child
*/

/* Add your custom CSS below */

.site-branding .custom-logo {
  height: 70px;
  width: auto;
}

.container {
    max-width: 1400px !important;
}

.search-listing-item {
    margin-bottom: 40px;
}

.search-listing-thumb {
    margin-bottom: 15px;
}

.search-listing-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Títulos com Open Sans Condensed */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.widget-title,
.listing-title,
.auto-listings__listing-title {
    font-family: 'Open Sans Condensed', sans-serif !important;
    text-transform: uppercase !important;
    font-weight: 700;
}

/* Menu principal */
.main-navigation a {
    font-family: 'Open Sans Condensed', sans-serif !important;
    text-transform: uppercase !important;
    font-weight: 700;
    font-size: 20px !important;
    color: #000 !important;
}

/* Padding na pagina inicial entre o bloco de marcas e o bloco de lista de carros */
.all--car {
    margin-bottom: 10px !important;
}

/* Remover cantos arredondados de todos os botões do tema/listagens */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
.button,
.wp-block-button__link,
.auto-listings .button,
.auto-listings .button-primary,
.auto-listings .cmb2-upload-button,
.auto-listings #wp-submit {
    border-radius: 0 !important;
}

/* Botão "More Details" / botões da listagem de carros sem cantos arredondados */
.auto-listings-items .bottom-wrap a.al-button {
    border-radius: 0 !important;
}

/* Botão de pesquisa das listagens */
.site-content .auto-listings-search .al-button,
.section--search .auto-listings-search .al-button {
    border-radius: 0 !important;
}

/* Botão "IR PARA LISTAGENS DE CARROS" */
.section--cta .section-cta__right a {
    border-radius: 0 !important;
}

/* Botão "VER TODOS" na secção FILTRAR POR MARCA */
.all--car .all-car-left .all-car__button {
    border-radius: 0 !important;
}

/* === HEADER STICKY FULL WIDTH === */

/* Estado normal do header */
.site-header {
    position: relative;
    z-index: 9999;
    background: #fff;
    transition: box-shadow 0.2s ease, padding 0.2s ease;
}

/* Header em modo sticky (full width) */
.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Esconder a barra de cima quando fica sticky */
.site-header.is-sticky .header-top {
    display: none;
}

/* Ajuste para quando estás logado no WP (barra de admin) */
body.admin-bar .site-header.is-sticky {
    top: 32px;
}

/* Empurrar o conteúdo para baixo quando o header está sticky */
body.has-sticky-header .site-content {
    padding-top: 0; /* ajustar se for preciso */
}

/* Reduzir a altura (padding) quando o header fica sticky */
.site-header.is-sticky .container {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    transition: padding 0.25s ease;
}

/* HERO: imagem com texto centrado em cima do carro */

/* garantir que o wrapper do hero é relativo */
.featured-posts .featured-post__content {
    position: relative !important;
}

/* overlay por cima da imagem, ocupando tudo */
.featured-posts .featured-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    pointer-events: none;
}

/* alinhar o conteúdo interno */
.featured-posts .featured-content .container {
    max-width: 900px;
    margin: 0 auto;
}

/* esconder "Página Inicial" */
.featured-posts .featured-content .entry-title {
    display: none !important;
}

/* estilo do texto principal */
.featured-posts .featured-content p {
    font-size: 46px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    color: #fff !important;
    font-family: 'Open Sans Condensed', sans-serif !important;
    margin: 0 !important;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .featured-posts .featured-content p {
        font-size: 26px !important;
        line-height: 1.2;
    }
}


/* gradiente por cima da imagem para dar contraste ao texto */
.featured-posts .featured-post__content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
    pointer-events: none;
}

/* Titulo do Search Principal */
.section--search .search-title
 {
    font-size: 1.5rem;
}

.auto-listings-single .sidebar h3
 {
    font-size: 1.25rem;
}

/* Preços nas listagens */
.auto-listings-items .price,
.auto-listings-items .price .currency-symbol {
    font-family: "Open Sans Condensed", "Open Sans", sans-serif;
    
}

/* Preço na single (topo) */
.auto-listings-single .has-sidebar .upper .price-amount,
.auto-listings-single .has-sidebar .upper .price-amount .currency-symbol {
    font-family: "Open Sans Condensed", "Open Sans", sans-serif;
    
}

/* Fundo do footer a preto */
.footer-bottom {
    background-color: #000000 !important;
}

/* Texto e links do footer em branco */
.footer-bottom,
.footer-bottom a,
.footer-bottom p,
.footer-bottom span {
    color: #ffffff !important;
}

/* Opcional: tirar qualquer borda/listra em cima */
.footer-bottom {
    border-top: none !important;
    box-shadow: none !important;
}

.auto-listings-single .has-sidebar .content .description
 {
    font-size: 1rem;
    color: #000;
    line-height: 1.7;
}

.sidebar .widget .widgettitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 25px 0;
    position: relative;
}

.auto-listings-items > li {
    border: 1px solid #000;
}

body {
    font-size: 1rem !important;
    color: #000 !important;
    
}

.fluentform .ff-btn-submit {
    background-color: #e31e24 !important; /* vermelho do site */
    border-color: #e31e24 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    font-weight: 600;
    text-transform: uppercase;
}

.fluentform .ff-btn-submit:hover {
    background-color: #b81a1f !important;
    border-color: #b81a1f !important;
}

.fluentform label {
    display: none !important;
}

.fluentform input::placeholder,
.fluentform textarea::placeholder {
    color: #8a8a8a !important;
}

.fluentform input,
.fluentform textarea {
    border-radius: 0 !important;
}

.fluentform input:focus,
.fluentform textarea:focus {
    border-color: #e31e24 !important;
    box-shadow: 0 0 0 1px #e31e24 !important;
}

.fluentform .ff-btn-submit {
    background-color: #e31e24 !important;
    border: none !important;
    color: #fff !important;
    padding: 14px 28px !important;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 0 !important;
}

.fluentform .ff-btn-submit:hover {
    background-color: #b81a1f !important;
}

/*section--search
 {

    border: 1px solid #e11e30 !important;
}*/

.section--search .search-title
 {
    margin: 0 0 20px 0 !important;
}

.auto-listings-single .has-sidebar .content .auto-listings-tabs .auto-listings-Tabs-panel
 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.auto-listings-single .has-sidebar .content .auto-listings-tabs > div
 {
    border: 0 !important;
}

a:hover {
    text-decoration: none !important;
}

.entry-header {
    display: none !important;
}

