/* ========================================
   Real Remoções — Layout (Header, Hero, Footer)
   ======================================== */

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__info {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.top-bar__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white);
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.top-bar__item:hover {
    opacity: 1;
}

.top-bar__item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.top-bar__social {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.top-bar__social a {
    color: var(--color-white);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.top-bar__social a:hover {
    opacity: 1;
}

.top-bar__social svg {
    width: 18px;
    height: 18px;
}

/* ===== HEADER / NAV ===== */
.header {
    background: var(--color-white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__logo img {
    height: 60px;
    width: auto;
}

.header__logo .logo-mobile {
    display: none;
}

.header__logo .logo-desktop {
    display: block;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header__nav a {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-cta);
    transition: width var(--transition-base);
    border-radius: 1px;
}

.header__nav a:hover,
.header__nav a.active {
    color: var(--color-cta);
}

.header__nav a:hover::after,
.header__nav a.active::after {
    width: 60%;
}

.header__cta {
    margin-left: var(--space-md);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-sm);
    border: none;
    background: transparent;
    z-index: 1001;
}

.hamburger__line {
    width: 26px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.hamburger.active .hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile menu overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(36, 37, 86, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
}

.mobile-nav a {
    color: var(--color-white);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--color-cta);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 160px;
    padding-bottom: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(36, 37, 86, 0.92) 0%,
            rgba(36, 37, 86, 0.75) 50%,
            rgba(91, 95, 199, 0.60) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 720px;
}

.hero__badge {
    margin-bottom: var(--space-xl);
}

.hero__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    line-height: 1.15;
}

.hero__subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-2xl);
    line-height: var(--line-height-relaxed);
    max-width: 600px;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__pulse {
    position: absolute;
    bottom: var(--space-md);
    /* Desce mais para ficar abaixo do ECG */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    /* Eleva o Pulse acima do divisor */
    animation: pulse-bounce 2s infinite;
    cursor: pointer;
    display: inline-block;
}

.hero__pulse svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
    opacity: 0.7;
}

@keyframes pulse-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===== PAGE HERO (Internas) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 60%, var(--color-cta) 100%);
    padding: var(--space-5xl) 0 var(--space-4xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: rgba(91, 95, 199, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.page-hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(91, 95, 199, 0.15);
    border-radius: var(--radius-full);
    filter: blur(80px);
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-3xl);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: var(--space-4xl) 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    margin-top: var(--space-lg);
}

.footer__brand img {
    height: 65px;
    width: auto;
}

.footer__title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer__links li {
    margin-bottom: var(--space-sm);
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-white);
    padding-left: var(--space-sm);
}

.footer__contact a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__contact a:hover {
    padding-left: 0;
}

.footer__contact svg {
    flex-shrink: 0;
}

.footer__links svg {
    color: rgba(255, 255, 255, 0.7);
}

.footer__links a:hover svg {
    color: var(--color-white);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.footer__social a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.footer__social a:hover {
    background: var(--color-cta);
    transform: translateY(-2px);
}

.footer__social svg {
    width: 20px;
    height: 20px;
}

.footer__locations {
    text-align: center;
    padding: 24px 0;
    margin: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer bottom */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__bottom p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer__credits {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer__credits img {
    height: 25px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer__credits img:hover {
    opacity: 1;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: all var(--transition-base);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    color: white;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}