/*
Theme Name:   HZBH - Brazilian Homes
Theme URI:    https://brazilianhomes.com
Author:       Hanna Zborowska
Author URI:   https://brazilianhomes.com
Description:  Premium real estate theme for HZBH - Brazilian Homes, showcasing luxury properties in Brazil.
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  hzbh
Tags:         real-estate, luxury, one-page, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   BASE RESET & GLOBAL
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 17.5px;
    /* Aumenta a proporção global de todas as fontes (rem) */
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #ffffff;
    color: #111111;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header select {
    color: #fff;
    font-size: 1em;
    background: transparent;
}

header select option {
    background-color: #3a3a3a !important;
}

/* Força os textos que estão marcados como ultraleves (font-light no Tailwind = 300) a ficarem mais legíveis com peso normal (400) */
.font-light {
    font-weight: 400 !important;
}

.font-normal {
    font-weight: 500 !important;
}

/* =========================================================
   PROPERTY LISTINGS GLOBALS (Aumentar peso e tamanho nas listagens)
   ========================================================= */

/* Cards Padrões (Home, Properties Page, Related Properties) */
.group.flex-col>h3.tracking-tight {
    font-size: 1.5rem !important;
    /* Aumenta o Título */
    font-weight: 600 !important;
    /* Mais forte (Semibold) */
}

.group.flex-col>p.mb-6 {
    font-size: 1rem !important;
    /* Aumenta o Preço */
    font-weight: 600 !important;
    /* Mais forte (Semibold) */
}

.group.flex-col>p.mb-6 span {
    font-weight: 500 !important;
    /* Aumenta a localização/código */
}

.group.flex-col>.grid-cols-2 {
    font-size: 0.95rem !important;
    /* Aumenta as amenidades (quartos, banheiros) */
    font-weight: 500 !important;
    row-gap: 0.75rem !important;
}

.group.flex-col>.mt-auto button {
    font-size: 0.95rem !important;
    /* Aumenta o botão "See this property" */
    font-weight: 700 !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Carousel em Destaque (Home Page) */
.owl-carousel .item h3.tracking-tight {
    font-size: 3rem !important;
    font-weight: 600 !important;
}

.owl-carousel .item p.mb-10 {
    font-size: 1.15rem !important;
    font-weight: 500 !important;
}

.owl-carousel .item ul.mb-12 {
    font-size: 1.05rem !important;
    font-weight: 500 !important;
}

.owl-carousel .item a.border-white\/30 {
    font-size: 1rem !important;
    font-weight: 700 !important;
}

::selection {
    background-color: #8A9A5B;
    color: #ffffff;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   LIQUID GLASS BUTTON
   ========================================================= */
.btn-liquid-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: url(#glass-distortion) brightness(1.06) saturate(1.2) contrast(1.03);
    -webkit-backdrop-filter: brightness(1.06) saturate(1.2) contrast(1.03);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.65),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 6px 28px rgba(0, 0, 0, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.08);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    border-radius: 9999px;
}

.btn-liquid-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.38) 0%,
            rgba(255, 255, 255, 0.08) 28%,
            rgba(255, 255, 255, 0.00) 55%,
            rgba(255, 255, 255, 0.10) 100%);
    pointer-events: none;
}

.btn-liquid-glass::after {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 0 0 9999px 9999px;
    pointer-events: none;
}

.btn-liquid-glass:hover {
    background: rgba(255, 255, 255, 0.11);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.75),
        inset 0 -1px 0 rgba(0, 0, 0, 0.10),
        0 10px 36px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* =========================================================
   SEARCH BAR LIQUID GLASS
   ========================================================= */
.search-liquid-glass {
    background: rgba(10, 10, 10, 0.20);
    /* Lighter and more translucent like frosted glass */
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* =========================================================
   HERO SEARCH FORM ELEMENTS
   ========================================================= */

/* Pill-shaped borders for form wrappers */
.hero-select-wrapper,
.hero-code-input {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 9999px;
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.0);
    transition: background 0.3s ease;
}

.hero-select-wrapper:hover,
.hero-code-input:focus {
    background: rgba(255, 255, 255, 0.1);
}

/* Chevron icon configuration inside flex pill */
.hero-select-icon {
    position: static;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    margin-right: 0.5rem;
}

/* The native select element stripped of defaults */
.hero-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    /* Increased size */
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    min-width: 0;
    line-height: inherit;
}

/* Ensure OS default dropdown has good contrast depending on browser */
.hero-select option {
    background: #ffffff;
    color: #111111;
}

/* Input directly reusing the pill-shape grouping above */
.hero-code-input {
    width: 120px;
    outline: none;
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    /* Increased size */
    font-weight: 500;
}

.hero-code-input::placeholder {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* =========================================================
   OWL CAROUSEL — PROPERTY
   ========================================================= */
.property-carousel .owl-item {
    display: flex;
}

.property-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: transparent !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0 !important;
}

.property-carousel .owl-nav button.owl-prev {
    left: -22px;
}

.property-carousel .owl-nav button.owl-next {
    right: -22px;
}

.property-carousel .owl-nav button:hover {
    background: white !important;
    color: black !important;
}

.property-carousel .owl-nav button span {
    display: none;
}

.property-carousel .owl-nav button::after {
    font-family: sans-serif;
    font-size: 18px;
    color: white;
}

.property-carousel .owl-nav button.owl-prev::after {
    content: '←';
}

.property-carousel .owl-nav button.owl-next::after {
    content: '→';
}

.property-carousel .owl-nav button:hover::after {
    color: black;
}

.property-carousel .owl-dots {
    display: none;
}

.carousel-wrapper {
    position: relative;
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-answer {
    display: none;
    overflow: hidden;
}

.faq-answer.open {
    display: block;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(90deg);
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* =========================================================
   SCROLL REVEAL ANIMATIONS (Global)
   ========================================================= */

/* State before reveal: Only applied when the JS assigns the .reveal-item class */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        filter 0.8s ease-out;
    will-change: opacity, transform, filter;
}

/* State when visibly intersecting */
.reveal-item.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: blur(0) !important;
}

/* =========================================================
   HERO LANGUAGE SWITCHER (GTRANSLATE)
   ========================================================= */
.hero-lang-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-lang-wrapper select,
.hero-lang-wrapper .gtranslate_wrapper {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: inherit !important;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    margin: 0;
}

.hero-lang-wrapper select option {
    background-color: #333333 !important;
    color: #ffffff !important;
}

.hero-lang-wrapper select::-ms-expand {
    display: none;
}

/* =========================================================
   SCROLL MARGIN FOR FIXED HEADER OFFSET
   ========================================================= */
[id] {
    scroll-margin-top: 90px;
}