/* ===================================
   Barreto Baptista Advocacia
   Premium Editorial Styles
   =================================== */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Selection */
::selection {
    background-color: #9A7B4F;
    color: white;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #9A7B4F;
    outline-offset: 2px;
}

/* Scroll Animation */
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
}

/* Header Scroll */
.header-scrolled {
    background-color: rgba(245, 240, 235, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #D4CCC2;
}

/* Mobile Menu */
.mobile-menu-open .menu-icon span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.mobile-menu-open .menu-icon span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* FAQ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.faq-content.show {
    max-height: 400px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F5F0EB;
}

::-webkit-scrollbar-thumb {
    background: #D4CCC2;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9A7B4F;
}

/* Form Inputs */
input:focus,
textarea:focus,
select:focus {
    border-color: #9A7B4F !important;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print */
@media print {
    .fixed,
    .whatsapp-float,
    #menu-btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    .border-brand-border {
        border-color: #000;
    }

    .text-brand-text-secondary {
        color: #000;
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    html {
        font-size: 15px;
    }
}

/* Skip Link */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    z-index: 9999;
}

/* Placeholder Styling */
::placeholder {
    color: #6B6B6E;
    opacity: 0.4;
}

/* Select Arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6E' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.5rem;
}

/* Gold Veins Effect */
.gold-veins {
    position: relative;
}

.gold-veins::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 0%, transparent 45%, #9A7B4F 45%, #9A7B4F 45.5%, transparent 45.5%, transparent 100%),
        linear-gradient(135deg, transparent 0%, transparent 62%, #9A7B4F 62%, #9A7B4F 62.3%, transparent 62.3%, transparent 100%),
        linear-gradient(135deg, transparent 0%, transparent 78%, #9A7B4F 78%, #9A7B4F 78.2%, transparent 78.2%, transparent 100%),
        linear-gradient(125deg, transparent 0%, transparent 30%, #9A7B4F 30%, #9A7B4F 30.15%, transparent 30.15%, transparent 100%),
        linear-gradient(140deg, transparent 0%, transparent 55%, #9A7B4F 55%, #9A7B4F 55.2%, transparent 55.2%, transparent 100%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}
