/*
Theme Name: Pereira Imóveis
Description: Tema WordPress para corretor de imóveis com suporte a widgets e personalização.
Version: 1.0
Author: Seu Nome
Text Domain: pereira-imoveis
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #3F4662;
    --primary-fg: #ffffff;
    --accent: #EDD500;
    --accent-fg: #2a2f42;
    --bg: #eef0f4;
    --fg: #2d3348;
    --card: #ffffff;
    --secondary: #eaecf1;
    --secondary-fg: #3F4662;
    --muted: #dfe1e8;
    --muted-fg: #71778a;
    --border: #dde0e8;
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #EDD500, #f0c040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-40px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(40px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.anim-fade-up {
    animation: fade-up 0.8s ease-out forwards;
}

.anim-fade-in-left {
    animation: fade-in-left 0.7s ease-out forwards;
}

.anim-fade-in-right {
    animation: fade-in-right 0.7s ease-out forwards;
}

.anim-scale-in {
    animation: scale-in 0.5s ease-out forwards;
}

.anim-slide-down {
    animation: slide-down 0.6s ease-out;
}

.hidden-scroll {
    opacity: 0;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(63, 70, 98, 0.95);
    backdrop-filter: blur(12px);
    animation: slide-down 0.6s ease-out;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-fg);
    letter-spacing: 0.04em;
    transition: transform .3s;
}

.header__logo:hover {
    transform: scale(1.05);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__link {
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .8);
    text-transform: uppercase;
    letter-spacing: .1em;
    position: relative;
    transition: color .3s;
}

.header__link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s;
}

.header__link:hover {
    color: var(--accent);
}

.header__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header__cta {
    padding: .6rem 1.4rem;
    background: var(--accent);
    color: var(--accent-fg);
    font-size: .8rem;
    font-weight: 600;
    border-radius: 2px;
    transition: all .3s;
}

.header__cta:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.header__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-fg);
    cursor: pointer;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    background: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, .1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s, padding .3s;
}

.mobile-nav.open {
    max-height: 300px;
    padding-bottom: 1rem;
}

.mobile-nav a {
    display: block;
    padding: .75rem 1.5rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .8);
    text-transform: uppercase;
    letter-spacing: .08em;
    transition: color .3s;
}

.mobile-nav a:hover {
    color: var(--accent);
}

.mobile-nav__cta {
    display: block;
    text-align: center;
    margin: .5rem 1.5rem 0;
    padding: .6rem;
    background: var(--accent);
    color: var(--accent-fg);
    font-weight: 600;
    font-size: .85rem;
    border-radius: 2px;
}

@media(max-width:768px) {
    .header__nav {
        display: none;
    }

    .header__toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
    }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: scale-in 1.2s ease-out forwards;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(63, 70, 98, .7);
}

.hero__content {
    position: relative;
    z-index: 10;
    padding-top: 5rem;
    max-width: 650px;
}

.hero__tag {
    color: var(--accent);
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .2em;
    opacity: 0;
    animation: fade-up .8s ease-out .3s forwards;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--primary-fg);
    line-height: 1.1;
    margin-top: .75rem;
    opacity: 0;
    animation: fade-up .8s ease-out .5s forwards;
}

.hero__desc {
    color: rgba(255, 255, 255, .8);
    font-size: 1.15rem;
    max-width: 500px;
    line-height: 1.7;
    margin-top: 1rem;
    opacity: 0;
    animation: fade-up .8s ease-out .7s forwards;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-up .8s ease-out .9s forwards;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    border-radius: 2px;
    transition: all .3s;
}

.hero__btn--primary {
    background: var(--accent);
    color: var(--accent-fg);
    border: none;
}

.hero__btn--primary:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.hero__btn--outline {
    background: transparent;
    color: var(--primary-fg);
    border: 1px solid rgba(255, 255, 255, .3);
}

.hero__btn--outline:hover {
    background: rgba(255, 255, 255, .1);
    transform: scale(1.05);
}

/* ===== PROPERTIES ===== */
.properties {
    padding: 5rem 0;
    background: var(--bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .2em;
    margin-bottom: .5rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--fg);
}

.properties__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media(max-width:768px) {
    .properties__grid {
        grid-template-columns: 1fr;
    }
}

.property-card {
    background: var(--card);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    transition: all .5s;
}

.property-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    transform: translateY(-4px);
}

.property-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.property-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s;
}

.property-card:hover .property-card__img {
    transform: scale(1.1);
}

.property-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--accent-fg);
    padding: .25rem .75rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 2px;
}

.property-card__body {
    padding: 1.5rem;
}

.property-card__location {
    color: var(--muted-fg);
    font-size: .85rem;
    margin-bottom: .25rem;
}

.property-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: .5rem;
}

.property-card__price {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.property-card__meta {
    display: flex;
    gap: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted-fg);
    font-size: .8rem;
}

.property-card__meta span {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.property-card__meta svg {
    width: 16px;
    height: 16px;
}

.property-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

.property-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform .5s;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border: none;
    padding: .5rem;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, .7);
}

.property-whatsapp-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: .75rem 1.5rem;
    background: #4caf50;
    color: #fff;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
    transition: background .3s;
}

.property-whatsapp-btn:hover {
    background: #45a049;
}

/* ===== ABOUT ===== */
.about {
    padding: 5rem 0;
    background: var(--secondary);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media(max-width:992px) {
    .about__grid {
        grid-template-columns: 1fr;
    }
}

.about__img-wrap {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.about__img-wrap img {
    aspect-ratio: 3/4;
    width: 100%;
    object-fit: cover;
    border-radius: 2px;
    transition: transform .7s;
}

.about__img-wrap:hover img {
    transform: scale(1.05);
}

.about__accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 8rem;
    height: 8rem;
    background: var(--accent);
    border-radius: 2px;
}

@media(max-width:992px) {
    .about__accent {
        display: none;
    }
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about__text {
    color: var(--muted-fg);
    line-height: 1.7;
}

.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.stat__icon {
    padding: .5rem;
    background: rgba(237, 213, 0, .2);
    border-radius: 2px;
    color: var(--accent);
    transition: background .3s;
}

.stat__icon:hover {
    background: rgba(237, 213, 0, .3);
}

.stat__icon svg {
    width: 20px;
    height: 20px;
}

.stat__value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
}

.stat__label {
    font-size: .8rem;
    color: var(--muted-fg);
}

/* ===== CONTACT ===== */
.contact {
    padding: 5rem 0;
    background: var(--bg);
}

.contact__grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
}

@media(max-width:992px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__desc {
    color: var(--muted-fg);
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item__icon {
    padding: .75rem;
    background: rgba(237, 213, 0, .2);
    border-radius: 2px;
    color: var(--accent);
    transition: background .3s;
}

.contact-item__icon:hover {
    background: rgba(237, 213, 0, .3);
}

.contact-item__icon svg {
    width: 20px;
    height: 20px;
}

.contact-item__title {
    font-weight: 600;
    color: var(--fg);
}

.contact-item__text {
    color: var(--muted-fg);
    font-size: .9rem;
}

.contact-item__text a {
    transition: color .3s;
}

.contact-item__text a:hover {
    color: var(--accent);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    background: #4caf50;
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    border-radius: 2px;
    transition: all .3s;
    border: none;
    cursor: pointer;
}

.whatsapp-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.whatsapp-btn svg {
    width: 18px;
    height: 18px;
}

.contact__form {
    background: var(--card);
    padding: 2rem;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.contact__form .form-group {
    margin-bottom: 1.25rem;
}

.contact__form label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: .4rem;
}

.contact__form input,
.contact__form textarea {
    width: 100%;
    padding: .75rem 1rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: .85rem;
    color: var(--fg);
    font-family: var(--font-body);
    outline: none;
    transition: box-shadow .3s;
}

.contact__form input:focus,
.contact__form textarea:focus {
    box-shadow: 0 0 0 3px rgba(237, 213, 0, .3);
}

.contact__form textarea {
    resize: none;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media(max-width:600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.contact__submit {
    width: 100%;
    padding: .9rem;
    background: var(--primary);
    color: var(--primary-fg);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all .3s;
}

.contact__submit:hover {
    background: rgba(63, 70, 98, .9);
    transform: scale(1.02);
}

.contact__submit:active {
    transform: scale(.98);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    padding: 2.5rem 0;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-fg);
}

.footer__copy {
    color: rgba(255, 255, 255, .5);
    font-size: .8rem;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a {
    color: rgba(255, 255, 255, .5);
    font-size: .8rem;
    transition: color .3s;
}

.footer__links a:hover {
    color: var(--accent);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    z-index: 9999;
    animation: fade-up .4s ease-out;
    transition: opacity .3s;
}

.toast--success {
    background: #4caf50;
}

.toast--error {
    background: #e53935;
}

/* Widgets */
.widget-area {
    margin-bottom: 2rem;
}

.widget {
    margin-bottom: 1.5rem;
}

.widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--fg);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 0.5rem;
}

.widget a {
    color: var(--muted-fg);
    transition: color 0.3s;
}

.widget a:hover {
    color: var(--accent);
}