/* ==========================================================================
   PET STYLES — Olhos Vet Rio
   ==========================================================================
   Microinterações + decorações pet-friendly.
   Adiciona caráter visual sem comprometer o tom premium do site.
   ========================================================================== */

/* ==========================================================================
   1. PATINHA DIVIDER — Section dividers decorativos
   ========================================================================== */
.fb-paw-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: var(--fb-space-8) 0;
    color: var(--fb-color-accent, #c69b2e);
    opacity: 0.55;
}
.fb-paw-divider::before,
.fb-paw-divider::after {
    content: '';
    flex: 0 1 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor 50%, transparent);
}
.fb-paw-divider svg {
    width: 22px;
    height: 22px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fb-paw-divider:hover svg {
    transform: rotate(-8deg) scale(1.1);
}

/* ==========================================================================
   2. HOVER CARDS — Mascote aparece no canto do card de serviço
   ========================================================================== */
.fb-services__grid {
    align-items: start;
}
.fb-card {
    position: relative;
    overflow: hidden;
    height: auto;
}
.fb-card__mascot {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    color: var(--fb-color-accent, #c69b2e);
    opacity: 0;
    transform: translate(6px, 6px) rotate(8deg);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 0;
}
.fb-card__mascot svg {
    width: 100%;
    height: 100%;
    display: block;
}
.fb-card:hover .fb-card__mascot {
    opacity: 0.22;
    transform: translate(0, 0) rotate(0deg);
}
.fb-card > .fb-card__icon,
.fb-card > .fb-card__title,
.fb-card > .fb-card__text,
.fb-card > .fb-btn {
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .fb-card__mascot {
        opacity: 0.15;
        transform: translate(0, 0) rotate(0deg);
        width: 28px;
        height: 28px;
    }
}

/* ==========================================================================
   3. COUNTER ANIMADO + selo "115+ avaliações"
   ========================================================================== */
.fb-stat-hero__num[data-counter] {
    display: inline-block;
    min-width: 2ch;
}
.fb-stat-hero {
    position: relative;
}
.fb-stat-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(198, 155, 46, 0.14);
    border: 1px solid rgba(198, 155, 46, 0.35);
    color: var(--fb-color-primary, #1f3a5c);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.fb-stat-hero__badge svg {
    width: 11px;
    height: 11px;
    color: var(--fb-color-accent, #c69b2e);
}
.fb-stat-hero__badge:hover {
    background: rgba(198, 155, 46, 0.22);
    border-color: var(--fb-color-accent, #c69b2e);
    transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
    .fb-stat-hero__num[data-counter] {
        animation: none !important;
    }
}

/* ==========================================================================
   4. WHATSAPP FLOAT — pulse contínuo + tooltip
   (sem sobrescrever position do original — sections.css define fixed/right/bottom)
   ========================================================================== */
.fb-wa-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.35);
    z-index: -1;
    animation: fb-wa-pulse 2.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes fb-wa-pulse {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50%      { transform: scale(1.18); opacity: 0; }
}
.fb-wa-tooltip {
    position: fixed;
    bottom: 32px;
    right: 88px;
    background: var(--fb-color-primary, #1f3a5c);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 500;
    box-shadow: 0 8px 24px -8px rgba(31, 58, 92, 0.4);
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 9999;
    white-space: nowrap;
}
.fb-wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--fb-color-primary, #1f3a5c);
}
.fb-wa-tooltip.is-visible {
    opacity: 1;
    transform: translateX(0);
}
@media (max-width: 640px) {
    .fb-wa-tooltip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fb-wa-float::before { animation: none; }
}

/* ==========================================================================
   5. LOGO HOVER — scale leve no header
   ========================================================================== */
.fb-logo {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left center;
}
.fb-logo:hover {
    transform: scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
    .fb-logo:hover { transform: none; }
}

/* ==========================================================================
   6. HERO MASCOT — silhueta translucida no fundo do hero
   ========================================================================== */
.fb-hero {
    position: relative;
    overflow: hidden;
}
.fb-hero__mascot-bg {
    position: absolute !important;
    display: block !important;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    max-width: 380px;
    max-height: 380px;
    color: var(--fb-color-accent, #c69b2e);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.fb-hero__mascot-bg svg {
    display: block;
    width: 380px;
    height: 380px;
    max-width: 100%;
    max-height: 100%;
}
.fb-hero > .fb-container {
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .fb-hero__mascot-bg {
        width: 220px !important;
        height: 220px !important;
        max-width: 220px;
        max-height: 220px;
        right: -60px;
        opacity: 0.04;
    }
    .fb-hero__mascot-bg svg {
        width: 220px;
        height: 220px;
    }
}

/* ==========================================================================
   7. REVIEW AVATARS — silhuetas de pet rotacionando entre cão/gato
   ========================================================================== */
.fb-review-card__avatar {
    background: linear-gradient(135deg, var(--fb-color-accent, #c69b2e) 0%, #e1bf5f 100%) !important;
    color: var(--fb-color-primary, #1f3a5c) !important;
    overflow: hidden;
    padding: 0 !important;
}
.fb-review-card__avatar svg {
    width: 64%;
    height: 64%;
}

/* ==========================================================================
   8. FOOTER MASCOT — pequeno cão dourado no canto do footer
   ========================================================================== */
.fb-footer {
    position: relative;
    overflow: hidden;
}
.fb-footer__mascot {
    position: absolute;
    bottom: 18px;
    right: 24px;
    width: 48px;
    height: 48px;
    color: var(--fb-color-accent, #c69b2e);
    opacity: 0.22;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 0;
}
.fb-footer__mascot svg {
    width: 100%;
    height: 100%;
}
.fb-footer:hover .fb-footer__mascot {
    opacity: 0.32;
    transform: translateY(-4px);
}
@media (max-width: 640px) {
    .fb-footer__mascot {
        width: 36px;
        height: 36px;
        right: 12px;
        bottom: 12px;
    }
}

/* ==========================================================================
   10. MAPA LEAFLET — Container + Pin custom + Popup
   ========================================================================== */
#fb-leaflet-map {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px -12px rgba(31, 58, 92, 0.3);
    z-index: 1;
}
.fb-map-icon {
    background: transparent !important;
    border: none !important;
}
.fb-map-pin {
    width: 48px;
    height: 48px;
    background: var(--fb-color-accent, #c69b2e);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px -4px rgba(31, 58, 92, 0.5);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.fb-map-pin svg {
    transform: rotate(45deg);
    width: 22px;
    height: 22px;
    color: var(--fb-color-primary, #1f3a5c);
}
.fb-map-icon:hover .fb-map-pin {
    transform: rotate(-45deg) scale(1.1);
}
/* Popup */
.fb-map-popup-wrap .leaflet-popup-content-wrapper {
    background: var(--fb-color-primary, #1f3a5c);
    color: #fff;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 12px 28px -8px rgba(31, 58, 92, 0.4);
}
.fb-map-popup-wrap .leaflet-popup-content {
    margin: 14px 18px;
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.45;
    font-size: 0.9rem;
}
.fb-map-popup-wrap .leaflet-popup-tip {
    background: var(--fb-color-primary, #1f3a5c);
}
.fb-map-popup {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}
.fb-map-popup strong {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem;
    color: var(--fb-color-accent, #c69b2e);
    font-weight: 500;
    margin-bottom: 2px;
}
.fb-map-popup span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}
.fb-map-popup a {
    margin-top: 6px;
    color: var(--fb-color-accent, #c69b2e);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}
.fb-map-popup a:hover { color: #fff; }
/* atribuição mais sutil */
.leaflet-control-attribution {
    font-size: 0.65rem !important;
    background: rgba(255,255,255,0.7) !important;
}
.leaflet-control-attribution a { color: var(--fb-color-primary, #1f3a5c) !important; }

/* ==========================================================================
   9. CTA BUTTON — animação sutil "wag" no primary do hero a cada 8s
   ========================================================================== */
@keyframes fb-cta-wag {
    0%, 4%, 100% { transform: rotate(0deg); }
    1%           { transform: rotate(2deg); }
    2%           { transform: rotate(-2deg); }
    3%           { transform: rotate(1deg); }
}
.fb-hero .fb-btn--primary {
    animation: fb-cta-wag 8s ease-in-out infinite;
    transform-origin: center bottom;
}
.fb-hero .fb-btn--primary:hover {
    animation: none;
}
@media (prefers-reduced-motion: reduce) {
    .fb-hero .fb-btn--primary { animation: none; }
}
