/* 
  Camacho Advocacia & Imobiliária
  Estilo: Editorial / Magazine
  Foco: Elegância, Tradição e Legibilidade
*/

:root {
    --gold: #F5C94A;
    --gold-light: #FFE89A;
    --gold-dark: #D4A830;
    --dark: #050505;
    --dark-surface: #0C0C0C;
    --dark-card: rgba(255, 255, 255, 0.03);
    --text: #F9F9F9;
    --text-muted: #B0B0B0;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-margin-top: 100px;
    /* Modern way to fix overlayed content */
}

/* Apply scroll margin to all sections with ID for better anchor positioning */
[id] {
    scroll-margin-top: 100px;
}

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--gold);
    color: var(--dark);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

.text-gold {
    color: var(--gold);
}

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

/* Layout Components */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-py {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Glassmorphism & Cards */
.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(245, 201, 74, 0.3);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(245, 201, 74, 0.1);
}

/* Header */
header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, height 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
}

header.scrolled {
    height: 70px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(245, 201, 74, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.md-show {
    display: none;
}

@media (max-width: 991px) {
    .md-show {
        display: block;
    }
}


.nav-link:hover {
    color: var(--gold);
}

.btn-cta {
    background: rgba(245, 201, 74, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
}

.btn-cta:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background-image: linear-gradient(to bottom, rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 1)), url('assets/images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-glow-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(245, 201, 74, 0.05);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content .gradient-text {
    background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.98);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text);
    text-decoration: none;
}

/* FAQ Accordion */
.faq-item {
    margin-bottom: 1rem;
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-content {
    max-height: 400px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-trigger svg {
    transform: rotate(180deg);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Utility / Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr !important;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    .grid-4 {
        grid-template-columns: 1fr !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hidden-mobile {
        display: none;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

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

/* Custom adjustments for Editorial feel */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(245, 201, 74, 0.1);
    border: 1px solid rgba(245, 201, 74, 0.2);
    border-radius: 9999px;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* ========== FOOTER PREMIUM — MODELO A (Skill AG5) ========== */
.footer {
    background: var(--dark-surface);
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(245, 201, 74, 0.1);
}

.footer-bg-decor {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    opacity: 0.03;
    pointer-events: none;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    filter: blur(50px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1rem;
    color: var(--text-muted);
}

.footer-logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(245, 201, 74, 0.2);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-social-link:hover {
    background: rgba(245, 201, 74, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(245, 201, 74, 0.1);
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--gold);
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--gold);
}

.footer-map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 120px;
    margin-bottom: 1rem;
}

.footer-map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-info p,
.credits {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-legal-links a {
    font-size: 11px;
    text-decoration: none;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    opacity: 1;
    color: var(--gold);
}

/* Responsividade Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Slider de Galeria Continuous Loop */
.slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0 4rem;
}

.slider-track {
    display: flex;
    width: calc(320px * 18);
    /* Baseado no tamanho do slide + gaps */
    animation: scroll-gallery 50s linear infinite;
}

.slide {
    width: 320px;
    height: 420px;
    padding: 0 10px;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    filter: grayscale(0.3);
}

.slide img:hover {
    border-color: var(--gold);
    transform: scale(1.03);
    filter: grayscale(0);
}

@keyframes scroll-gallery {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * 9));
    }
}

/* Pausar animação no hover para melhor experiência */
.slider-track:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .slide {
        width: 260px;
        height: 340px;
    }

    @keyframes scroll-gallery {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-260px * 9));
        }
    }
}

/* Refinamentos Footer AG5 */
.footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1.8fr 1fr !important;
    padding: 2.5rem 0 2rem;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-logo-brand,
    .footer-social,
    .footer-contact-item {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}


.footer-brand p {
    font-size: 0.825rem;
    line-height: 1.5;
    opacity: 0.85;
}

.footer-heading {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.footer-links a,
.footer-contact-item,
.footer-info p,
.credits {
    font-size: 0.8rem;
}

.footer-bottom {
    padding: 1rem 0;
}

/* WhatsApp Badge & Notify */
.wa-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.whatsapp-float {
    overflow: visible;
}

@keyframes wa-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.wa-badge {
    animation: wa-bounce 2s infinite ease-in-out;
}

/* Form Focus Style */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 2px rgba(245, 201, 74, 0.2) !important;
}

/* Fix para visibilidade do Select */
select option {
    background-color: #1a1a1a;
    color: white;
}