/* Custom Styles for SJC Montador de Móveis */

:root {
    --primary: #f48200;
    --primary-hover: #e07600;
    --dark: #111111;
    --light: #f9f9f9;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Dark Header */
header {
    background: #111111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

header.scrolled {
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

header.scrolled .logo-container {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(244, 130, 0, 0.3);
}

/* Service Cards - Masterpiece (v7) */
.service-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid var(--accent-light, #f3f4f6);
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    padding: 3.5rem 2rem !important;
    border-radius: 2.5rem !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-color, #f48200);
    transition: height 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px -12px rgba(var(--accent-rgb, 0, 0, 0), 0.15);
    border-color: var(--accent-color);
}

.service-card:hover::before {
    height: 12px;
}

.icon-box {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2.5rem;
    width: 84px;
    height: 84px;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light, #fff7ed) !important;
    color: var(--accent-color, #f48200);
    position: relative;
}

.icon-box i {
    width: 42px;
    height: 42px;
    stroke-width: 2.5px;
    z-index: 2;
}

.service-card:hover .icon-box {
    transform: scale(1.15) rotate(10deg);
    background: var(--accent-color) !important;
    color: #fff;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111;
}

.service-card p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
}

/* Staggered Hero Text Animation */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    animation: reveal 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes reveal {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

/* Custom Gradients */
.bg-orange-gradient {
    background: linear-gradient(135deg, #f48200 0%, #ff9d2e 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #f48200 0%, #ff9d2e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cookie Consent (Hidden for now as it doesn't have content) */
#cookie-consent {
    display: none;
}

/* Accordion FAQ */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

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

/* WhatsApp Floating Button (Joinchat Style) */
#whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(100px);
    display: flex;
    align-items: center;
    gap: 15px;
}

#whatsapp-float.show {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-tooltip {
    background-color: white;
    color: #444;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

#whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-btn-wrapper {
    position: relative;
}

.whatsapp-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.whatsapp-btn {
    width: 65px;
    height: 65px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Float Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Subtle Shimmer for buttons */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.bg-orange-gradient:hover {
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    background-image: linear-gradient(135deg, #f48200 0%, #ff9d2e 50%, #f48200 100%);
}

/* Reveal line animation for titles */
.line-reveal {
    position: relative;
    display: inline-block;
}

.line-reveal::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #f48200;
    transition: width 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    border-radius: 2px;
}

.line-reveal:hover::after {
    width: 100%;
}

/* Infinite Ticker for Neighborhoods */
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: ticker 40s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 0 40px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.ticker-item:hover {
    color: var(--primary);
    transform: scale(1.1);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Blog Content Styles */
.blog-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 800;
    color: #111 !important;
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111 !important;
}

.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content hr {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid #eee;
}

.blog-content strong {
    color: #111;
    font-weight: 800;
}