/* =========================================
   VARIÁVEIS GLOBAIS E PALETA DE CORES
========================================= */
:root {
    --color-offwhite: #F3F4EE;
    --color-teal: #2A505B;
    --color-green-gray: #68837E;
    --color-navy: #072233;
    
    --font-heading: 'Quiche Sans', 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* =========================================
   IMPORTAÇÃO DA QUICHE SANS DO ZIP
========================================= */
@font-face {
    font-family: 'Quiche Sans';
    src: url('../assets/fonts/Fontspring-DEMO-quichesans-light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   RESET E BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-offwhite);
    color: var(--color-navy);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   LAYOUT DO CARTÃO DIGITAL
========================================= */
.page-cartao {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.background-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../assets/background cartão.png'); 
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.card-container {
    position: relative;
    z-index: 1;
    background-image: linear-gradient(rgba(7, 34, 51, 0.75), rgba(7, 34, 51, 0.75)), url('../assets/background cartão.png');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(243, 244, 238, 0.15);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* =========================================
   ELEMENTOS INTERNOS
========================================= */
.card-header .profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-teal);
    padding: 4px;
    margin-bottom: 1.5rem;
    background-color: var(--color-offwhite);
}

.card-bio h1.fonte-quiche {
    font-family: var(--font-heading);
    font-weight: 300; /* Peso fino da Quiche */
    text-transform: uppercase;
    color: var(--color-offwhite);
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.card-bio .especialidade {
    font-family: var(--font-body); 
    font-size: 0.85rem;
    font-weight: 400; /* Montserrat regular */
    color: var(--color-offwhite);
    line-height: 1.5;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-transform: uppercase; 
}

/* =========================================
   BOTÕES E AÇÕES
========================================= */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-teal);
    color: var(--color-offwhite);
    box-shadow: 0 4px 10px rgba(42, 80, 91, 0.15);
}

.btn-primary:hover {
    background-color: var(--color-offwhite);
    color: var(--color-teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-offwhite);
    border: 1px solid var(--color-offwhite);
}

.btn-outline:hover {
    background-color: var(--color-offwhite);
    color: var(--color-navy);
    border-color: var(--color-offwhite);
}

.divisor {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(243, 244, 238, 0.3), transparent);
    margin: 0.5rem 0;
}

/* =========================================
   ANIMAÇÕES DE ENTRADA
========================================= */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in { animation: none; opacity: 1; }
    .btn:hover { transform: none; }
}