/* ==========================================================================
   PORTEIRA ABERTA PET SHOP - CENTRAL DE LINKS
   Design System & Stylesheet (Desktop Horizontal Cards & Mobile Optimization)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & DESIGN SYSTEM
   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --brand-orange: #F26522;
    --brand-orange-hover: #D94E0C;
    --brand-orange-light: #FFF4EE;
    
    --brand-green: #7BB342;
    --brand-green-hover: #689F38;
    --brand-green-light: #F3F9ED;

    /* Action Colors */
    --whatsapp-green: #25D366;
    --whatsapp-hover: #1EBE59;
    --whatsapp-bg-light: #E8F9EE;

    /* Neutral Colors */
    --text-primary: #2B2D42;
    --text-secondary: #5C6370;
    --text-muted: #8D99AE;
    
    --bg-page: #FAF8F5;
    --card-bg: #FFFFFF;
    --border-subtle: rgba(242, 101, 34, 0.12);
    
    /* Elevation & Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 24px -4px rgba(242, 101, 34, 0.08), 0 3px 10px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 16px 36px -6px rgba(242, 101, 34, 0.14), 0 6px 16px rgba(0, 0, 0, 0.06);

    /* Typography */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(242, 101, 34, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(123, 179, 66, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* Container Centralizado para Hub de Links */
.page-container {
    width: 100%;
    max-width: 740px;
    padding: 2rem 1.25rem 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* --------------------------------------------------------------------------
   3. HERO / CABEÇALHO COMPACTO
   -------------------------------------------------------------------------- */
.hero-section {
    text-align: center;
    margin-bottom: 1.75rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-circle-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 2px solid rgba(242, 101, 34, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 3px 8px rgba(242, 101, 34, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 0.85rem;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    transition: transform var(--transition-bounce), box-shadow var(--transition-smooth);
}

.logo-circle-avatar:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(242, 101, 34, 0.15);
}

.main-logo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
    transform: scale(2.65);
    transform-origin: center center;
    transition: transform var(--transition-bounce);
}

/* SELO DESTAQUE DA CIDADE */
.city-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--brand-orange-light);
    border: 1px solid rgba(242, 101, 34, 0.22);
    color: var(--brand-orange-hover);
    font-size: 0.825rem;
    font-weight: 800;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(242, 101, 34, 0.08);
}

.city-badge-icon {
    width: 15px;
    height: 15px;
    color: var(--brand-orange);
}

.hero-headline {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.4rem;
}

.hero-subtitle {
    font-size: 0.925rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 540px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. SEÇÃO DE UNIDADES & CARDS (DESKTOP HORIZONTAL)
   -------------------------------------------------------------------------- */
.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.stores-section {
    width: 100%;
}

.stores-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* STORE CARD - HORIZONTAL NO DESKTOP */
.store-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: row;
}

.store-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(242, 101, 34, 0.25);
}

/* IMAGEM FACHADA REAL */
.card-image-wrapper {
    position: relative;
    width: 38%;
    min-width: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #EAEAEA;
}

.store-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Ajuste fino de enquadramento para destacar os letreiros das lojas */
.store-image-loja1 {
    object-position: center center;
}

.store-image-loja2 {
    object-position: center center;
}

.store-card:hover .store-image {
    transform: scale(1.05);
}

.store-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(242, 101, 34, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.store-badge-alt {
    background: rgba(123, 179, 66, 0.92);
}

/* CARD BODY (INFORMAÇÕES À DIREITA NO DESKTOP) */
.card-body {
    padding: 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 62%;
    gap: 0.9rem;
}

.card-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.store-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.store-info-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.info-icon {
    width: 17px;
    height: 17px;
    color: var(--brand-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-text {
    line-height: 1.4;
    font-weight: 500;
}

.address-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.landmark-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--brand-green-hover);
    background-color: var(--brand-green-light);
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    width: fit-content;
}

.phone-link {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.phone-link:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}

/* INSTAGRAM DA UNIDADE (DISCRETO E SECUNDÁRIO DENTRO DO CARD) */
.store-instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.3rem 0.65rem;
    background-color: rgba(0, 0, 0, 0.035);
    border-radius: 6px;
    width: fit-content;
    transition: all var(--transition-fast);
}

.store-instagram-link:hover {
    color: #E1306C;
    background-color: rgba(225, 48, 108, 0.08);
}

.insta-icon {
    width: 14px;
    height: 14px;
}

/* --------------------------------------------------------------------------
   5. BOTÕES DE AÇÃO PRINCIPAIS
   -------------------------------------------------------------------------- */
.actions-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.2rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    position: relative;
    user-select: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Botão WhatsApp */
.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    color: #FFFFFF;
}

/* Botão Traçar Rota */
.btn-route {
    background-color: var(--brand-orange);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.28);
}

.btn-route:hover {
    background-color: var(--brand-orange-hover);
    box-shadow: 0 6px 16px rgba(242, 101, 34, 0.38);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   6. ANIMAÇÃO DOS ANIMAIS (COM GATO NOVO E RING NECK AZUL)
   -------------------------------------------------------------------------- */
.pet-animation-container {
    width: 100%;
    margin: 0.5rem 0;
    padding: 1.5rem 0 0.5rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    pointer-events: none;
}

/* Ring Neck Azul Voando Alto */
.bird-character {
    position: absolute;
    top: 2px;
    left: 0;
    z-index: 2;
    animation: flyBirdAcross 22s linear infinite;
}

.wing-top {
    animation: wingFlap 0.22s ease-in-out infinite alternate;
    transform-origin: bottom left;
}

.wing-bottom {
    animation: wingFlap 0.22s ease-in-out infinite alternate-reverse;
    transform-origin: top left;
}

/* Trilha dos animais no chão */
.pet-walk-track {
    display: flex;
    align-items: flex-end;
    gap: 3.5rem;
    width: max-content;
    animation: walkPetsAcross 26s linear infinite;
}

.pet-character {
    display: flex;
    align-items: flex-end;
}

.pet-svg {
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.08));
}

.dog-1 { animation: petBob 0.6s ease-in-out infinite alternate; }
.cat-1 { animation: petBob 0.5s ease-in-out infinite alternate; }
.dog-2 { animation: petBob 0.45s ease-in-out infinite alternate; }

.leg-front-left { animation: legWalk 0.6s ease-in-out infinite alternate; transform-origin: top center; }
.leg-back-right { animation: legWalk 0.6s ease-in-out 0.3s infinite alternate; transform-origin: top center; }
.pet-tail { animation: tailWag 0.5s ease-in-out infinite alternate; transform-origin: bottom left; }
.cat-tail { animation: tailWag 0.4s ease-in-out infinite alternate; transform-origin: bottom center; }

/* Trilha discreta no chão */
.paw-path {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(123, 179, 66, 0.3) 20%, rgba(242, 101, 34, 0.3) 80%, transparent);
    margin-top: 2px;
    border-radius: 2px;
}

/* Keyframes Animações */
@keyframes flyBirdAcross {
    0% {
        transform: translate(-100%, 0);
    }
    25% {
        transform: translate(25vw, 6px);
    }
    50% {
        transform: translate(50vw, -4px);
    }
    75% {
        transform: translate(75vw, 4px);
    }
    100% {
        transform: translate(110vw, 0);
    }
}

@keyframes wingFlap {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(20deg); }
}

@keyframes walkPetsAcross {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(320%);
    }
}

@keyframes petBob {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}

@keyframes legWalk {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(10deg); }
}

@keyframes tailWag {
    0% { transform: rotate(-8deg); }
    100% { transform: rotate(12deg); }
}

/* --------------------------------------------------------------------------
   7. SEÇÃO YOUTUBE OFICIAL
   -------------------------------------------------------------------------- */
.youtube-section {
    width: 100%;
}

.youtube-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    padding: 1.15rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid rgba(255, 0, 0, 0.15);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.youtube-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 0, 0, 0.3);
}

.youtube-header-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.youtube-discrete-icon {
    width: 22px;
    height: 22px;
    color: #FF0000;
    flex-shrink: 0;
    margin-top: 2px;
}

.youtube-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.youtube-title {
    font-size: 0.975rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.youtube-subtitle {
    font-size: 0.825rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.45;
}

.btn-youtube {
    background-color: #FF0000;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
}

.btn-youtube:hover {
    background-color: #D60000;
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   8. RODAPÉ (FOOTER)
   -------------------------------------------------------------------------- */
.main-footer {
    margin-top: 1.5rem;
    text-align: center;
    width: 100%;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.footer-brand {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-credit {
    font-size: 0.775rem;
    color: var(--text-muted);
}

.credit-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.credit-link:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVIDADE MOBILE (@media max-width: 639px)
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
    .page-container {
        padding: 1.5rem 1rem 1.5rem 1rem;
    }

    .hero-headline {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    /* Transforma os cards em vertical no celular */
    .store-card {
        flex-direction: column;
    }

    .card-image-wrapper {
        width: 100%;
        height: 155px; /* Altura reduzida da foto no celular */
        min-width: unset;
    }

    .card-body {
        width: 100%;
        padding: 1.15rem;
        gap: 0.85rem;
    }

    .actions-group {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .btn {
        min-height: 44px;
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }
}

@media (max-width: 380px) {
    .actions-group {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   10. PREFERS REDUCED MOTION (ACESSIBILIDADE)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .pet-walk-track,
    .bird-character {
        animation: none !important;
        display: none !important;
    }
}

