/* ==========================================================================
   ESPAÇO SALVATORE - LINK DA BIO INSTAGRAM
   Paleta de Luxo: Nude, Champagne, Bronze Suave, Seda & Dourado
   ========================================================================== */

:root {
    /* Cores Principais do Conceito Visual */
    --color-bg-base: #EFE9DF;
    --color-bg-light: #F9F6F0;
    --color-bg-card: rgba(255, 255, 255, 0.72);
    --color-bg-card-hover: rgba(255, 255, 255, 0.92);
    --color-bg-card-border: rgba(189, 160, 133, 0.35);
    --color-bg-card-border-hover: rgba(142, 115, 91, 0.6);
    
    --color-primary: #5A4434;        /* Marrom Café / Bronze Escuro */
    --color-secondary: #7F6553;      /* Bronze Médio Elegante */
    --color-accent: #A68367;         /* Dourado Nude */
    --color-accent-gold: #C5A059;    /* Dourado Metálico */
    --color-text-dark: #3A2B20;      /* Texto de Alto Contraste */
    --color-text-muted: #7A695C;     /* Texto Secundário */
    --color-icon-bg: #634C3C;        /* Fundo dos Círculos dos Ícones */
    --color-icon-color: #FFFFFF;
    
    /* Tipografia */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-script: 'Alex Brush', cursive;

    /* Sombras & Efeitos */
    --shadow-card: 0 10px 25px -5px rgba(90, 68, 52, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 16px 32px -4px rgba(90, 68, 52, 0.14), 0 6px 14px -2px rgba(0, 0, 0, 0.05);
    --shadow-badge: 0 4px 12px rgba(99, 76, 60, 0.25);
    
    --radius-pill: 50px;
    --radius-card: 28px;
    --radius-inner: 20px;
    
    --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset & Box Sizing */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-base);
    color: var(--color-text-dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */

.bio-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: radial-gradient(circle at 50% 20%, #FAF7F2 0%, #EFE8DE 55%, #E3D9CC 100%);
    overflow: hidden;
}

/* Camadas de Fundo / Ambient */
.bg-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bg-overlay {
    background: linear-gradient(
        180deg,
        rgba(250, 247, 242, 0.4) 0%,
        rgba(246, 240, 232, 0.6) 35%,
        rgba(242, 234, 224, 0.92) 70%,
        rgba(235, 224, 212, 0.98) 100%
    );
    z-index: 1;
}

.bg-glow {
    background: radial-gradient(
        circle at 50% 25%,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    z-index: 3;
}

/* ==========================================================================
   IMAGEM DEGRADÊ SUPERIOR (HERO DEGRADÊ)
   ========================================================================== */
.top-hero-degrade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 480px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.hero-degrade-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    filter: saturate(1.08) brightness(1.02);
    -webkit-mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.75) 12%,
        rgba(0, 0, 0, 0.9) 35%,
        rgba(0, 0, 0, 0.65) 65%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.75) 12%,
        rgba(0, 0, 0, 0.9) 35%,
        rgba(0, 0, 0, 0.65) 65%,
        rgba(0, 0, 0, 0) 100%
    );
}

.hero-degrade-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 38%,
        rgba(250, 246, 240, 0.3) 0%,
        rgba(245, 238, 228, 0.65) 55%,
        rgba(239, 233, 223, 0.96) 95%
    );
    z-index: 2;
}

/* Container Mobile-First */
.bio-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 38px 22px 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
}

/* ==========================================================================
   CABEÇALHO (HEADER)
   ========================================================================== */

.bio-header {
    text-align: center;
    width: 100%;
    margin-bottom: 24px;
}

.brand-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 2.35rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: var(--color-primary);
    text-transform: uppercase;
    line-height: 1.1;
    margin-right: -0.22em; /* Compensa o letter-spacing no alinhamento central */
}

.brand-subtitle {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    color: var(--color-secondary);
    text-transform: uppercase;
    margin-right: -0.26em;
    opacity: 0.9;
}

.brand-divider {
    margin: 12px 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diamond-icon {
    font-size: 0.85rem;
    color: var(--color-accent);
    opacity: 0.8;
}

.welcome-box {
    margin-top: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0) 80%
    );
}

.welcome-title {
    font-family: var(--font-serif);
    font-size: 1.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.welcome-text {
    font-family: var(--font-sans);
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    font-weight: 400;
    max-width: 320px;
    margin: 0 auto;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.welcome-text strong {
    color: var(--color-primary);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

/* ==========================================================================
   CARDS DE LINKS / BOTÕES
   ========================================================================== */

.bio-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.bio-card {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 18px 10px 12px;
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-bg-card-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.bio-card:hover, .bio-card:focus-visible {
    background: var(--color-bg-card-hover);
    border-color: var(--color-bg-card-border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px) scale(1.01);
}

.bio-card:active {
    transform: translateY(0) scale(0.99);
}

/* Círculo do Ícone */
.card-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-icon-bg);
    color: var(--color-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-badge);
    transition: var(--transition-smooth);
}

.bio-card:hover .card-icon-wrapper {
    transform: scale(1.06);
    background: #4E392B;
}

.card-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

/* Conteúdo de Texto do Card */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
}

.card-title {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-text-dark);
    text-transform: uppercase;
    line-height: 1.25;
}

.card-subtitle {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.2;
    margin-top: 2px;
}

/* Indicador de Ação (Seta / Chevron) */
.card-action-indicator {
    flex-shrink: 0;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--color-secondary);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.bio-card:hover .card-action-indicator {
    opacity: 0.9;
    transform: translateX(2px);
}

.bio-card:hover .accordion-arrow {
    transform: none; /* A seta do acordeon tem animação própria */
}

/* ==========================================================================
   ACORDEON DE LOCALIZAÇÃO (MAPA FAQ STYLE)
   ========================================================================== */

.bio-accordion-item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.accordion-trigger {
    width: 100%;
    border: 1px solid var(--color-bg-card-border);
    font: inherit;
    color: inherit;
}

.accordion-arrow {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bio-accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
    opacity: 1;
}

.bio-accordion-item.active .accordion-trigger {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    border-color: var(--color-accent);
    background: var(--color-bg-card-hover);
}

/* Container Expansível */
.accordion-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.accordion-inner {
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(189, 160, 133, 0.4);
    border-radius: var(--radius-card);
    padding: 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Box de Endereço */
.address-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FAF7F2;
    border: 1px solid rgba(189, 160, 133, 0.25);
    border-radius: 16px;
    padding: 10px 12px;
}

.address-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(99, 76, 60, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-icon svg {
    width: 16px;
    height: 16px;
}

.address-info {
    flex: 1;
    min-width: 0;
}

.address-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
}

.address-full {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.35;
    margin-top: 2px;
    word-break: break-word;
}

.btn-copy-address {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #EFE7DC;
    border: 1px solid rgba(189, 160, 133, 0.4);
    color: var(--color-primary);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-copy-address:hover {
    background: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
}

.btn-copy-address.copied {
    background: #4E6E50;
    color: #FFFFFF;
    border-color: #4E6E50;
}

.btn-copy-address svg {
    width: 12px;
    height: 12px;
}

/* Moldura do Iframe do Mapa */
.map-frame-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(189, 160, 133, 0.3);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.map-frame-wrapper iframe {
    display: block;
    width: 100%;
    height: 200px;
}

/* Grid de Botões de Rota (Maps, Waze, Uber) */
.route-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.route-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 6px;
    background: #FAF7F2;
    border: 1px solid rgba(189, 160, 133, 0.3);
    border-radius: 12px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.route-btn svg {
    width: 14px;
    height: 14px;
}

.route-btn:hover {
    background: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.route-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   ASSINATURA & RODAPÉ
   ========================================================================== */

.bio-signature {
    text-align: center;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.signature-text {
    font-family: var(--font-script);
    font-size: 2.1rem;
    color: var(--color-secondary);
    line-height: 1.1;
    letter-spacing: 0.02em;
    opacity: 0.95;
}

.signature-heart {
    font-size: 0.75rem;
    color: var(--color-accent);
    opacity: 0.85;
}

.bio-footer {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-badge {
    width: 100%;
    padding: 12px 16px;
    background: rgba(189, 172, 155, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(189, 160, 133, 0.3);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--color-primary);
    text-transform: uppercase;
}

.footer-location {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    color: var(--color-secondary);
    text-transform: uppercase;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #3A2B20;
    color: #FAF7F2;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast svg {
    width: 16px;
    height: 16px;
    color: #98D8A3;
}

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA SUAVE
   ========================================================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-down {
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-card {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bio-links .bio-card:nth-child(1) { animation-delay: 0.15s; }
.bio-links .bio-card:nth-child(2) { animation-delay: 0.25s; }
.bio-links .bio-accordion-item:nth-child(3) { animation-delay: 0.35s; }
.bio-links .bio-card:nth-child(4) { animation-delay: 0.45s; }

/* ==========================================================================
   RESPONSIVIDADE (DESKTOP & TELAS PEQUENAS)
   ========================================================================== */

@media (min-width: 481px) {
    body {
        background-color: #E2D9CE;
        background-image: 
            radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.4) 0px, transparent 50%),
            radial-gradient(at 100% 100%, rgba(200, 185, 170, 0.4) 0px, transparent 50%);
        padding: 30px 16px;
        align-items: center;
    }

    .bio-wrapper {
        min-height: auto;
        border-radius: 40px;
        max-width: 440px;
        box-shadow: 
            0 25px 60px -15px rgba(60, 45, 35, 0.2),
            0 0 0 10px rgba(255, 255, 255, 0.4),
            0 0 0 12px rgba(189, 160, 133, 0.3);
    }
}

@media (max-width: 360px) {
    .bio-container {
        padding: 28px 14px 20px 14px;
    }

    .brand-title {
        font-size: 2.1rem;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .card-title {
        font-size: 0.82rem;
    }

    .card-icon-wrapper {
        width: 42px;
        height: 42px;
    }

    .signature-text {
        font-size: 1.85rem;
    }
}
