/* Definindo as fontes personalizadas com font-display */
/* @font-face {
    font-family: 'Quiche Sans Thin';
    src: url('../fonts/QuicheSansThin.woff2') format('woff2'),
         url('../fonts/QuicheSansThin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quiche Sans Thin';
    src: url('../fonts/QuicheSansThinBold.woff2') format('woff2'),
         url('../fonts/QuicheSansThinBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brother 1816 Book';
    src: url('../fonts/Brother1816Book.woff2') format('woff2'),
         url('../fonts/Brother1816Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thank You Regular';
    src: url('../fonts/ThankYouRegular.woff2') format('woff2'),
         url('../fonts/ThankYouRegular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
} */

body {
    font-family: 'Open Sans', sans-serif;
    display: flex;
    min-height: 100vh;
}

/* Preloader - Inline para carregamento rápido */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffeacd, #ffe6f3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: #2c2c2c;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    animation: pulse 2s infinite;
}

.preloader-text {
    /* font-family: 'Quiche Sans Thin', 'Quicksand', sans-serif; */
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.preloader-toys {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.preloader-toys i {
    font-size: 1.5rem;
    color: #e62987;
    animation: bounce 1.5s infinite;
}

.preloader-toys i:nth-child(2) {
    animation-delay: 0.3s;
    color: #d16d2a;
}

.preloader-toys i:nth-child(3) {
    animation-delay: 0.6s;
    color: #d79330;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(230, 41, 135, 0.3);
    border-top: 4px solid #e62987;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero h1 {
    /* font-family: 'Quiche Sans Thin', 'Quicksand', sans-serif; */
    font-weight: 700;
}

.hero-left p {
    /* font-family: 'Brother 1816 Book', 'Open Sans', sans-serif; */
    font-weight: 400;
}

.btn-primary {
    /* font-family: 'Thank You Regular', 'Open Sans', sans-serif; */
}

.logo, .section-title {
    /* font-family: 'Quiche Sans Thin', 'Quicksand', sans-serif; */
}

/* Estilos específicos para página Nossa História */
.main-content {
    margin-left: 80px;
    flex: 1;
    min-height: 100vh;
}
.main-content {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Gradiente suave no header (hero) */
.story-hero {
    background: linear-gradient(180deg, #ffe5d6 0%, #fff 100%);
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
}

.story-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23e62987" opacity="0.3"/><circle cx="80" cy="40" r="1.5" fill="%23d16d2a" opacity="0.3"/><circle cx="60" cy="80" r="1" fill="%23d79330" opacity="0.3"/></svg>');
    opacity: 0.5;
}

.story-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
}

.story-hero h1 {
    font-size: 2.8rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.story-hero p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 500;
}

.story-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.story-section {
    margin-bottom: 3rem;
}

/* Seções alternadas - texto e imagem */
.story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.story-block:nth-child(even) {
    direction: rtl;
}

.story-block:nth-child(even) > * {
    direction: ltr;
}

.story-block-text {
    padding: 1rem;
}

.story-block-image {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.story-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-block-image:hover img {
    transform: scale(1.05);
}

.story-subtitle {
    /* font-family: 'Quiche Sans Thin', 'Quicksand', sans-serif; */
    font-size: 1.8rem;
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
    font-weight: 400;
}

.story-text-highlight {
    background: linear-gradient(135deg, #ffeacd, #ffe6f3);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-pink);
}

.team-section {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 25%, 
        rgba(255, 230, 243, 0.6) 30%, 
        var(--light-pink) 70%
    );
    padding: 5rem 3rem;
    margin-top: 3rem;
}

.team-title {
    /* font-family: 'Quiche Sans Thin', 'Quicksand', sans-serif; */
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-pink);
    margin-bottom: 4rem;
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.team-member {
    background: white;
    border-radius: 200px 200px 25px 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.team-photo {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    display: block;  
    margin: 0;  
    padding: 0;  
    border: none;
    /* Adicione a linha abaixo */
    border-radius: 25px 25px 0 0; 
}

.team-info {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
}

.team-name {
    /* font-family: 'Quiche Sans Thin', 'Quicksand', sans-serif; */
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-pink);
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1.2rem;
    color: var(--secondary-accent);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    text-align: justify;
    text-justify: inter-word;
}

.quote-highlight {
    background: linear-gradient(135deg, #ffeacd, #ffe6f3);
    border-left: 5px solid var(--primary-pink);
    padding: 3rem 2.5rem;
    margin: 4rem 0;
    border-radius: 0 20px 20px 0;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-dark);
    text-align: center;
    position: relative;
    font-weight: 500;
    line-height: 1.6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quote-highlight::before {
    /* font-family: 'Quiche Sans Thin', 'Quicksand', sans-serif; */
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--primary-pink);
    opacity: 0.3;
}

.quote-highlight::after {
    /* font-family: 'Quiche Sans Thin', 'Quicksand', sans-serif; */
    content: '"';
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    font-size: 4rem;
    color: var(--primary-pink);
    opacity: 0.3;
}

/* Botão Voltar minimalista e harmônico com o botão de voltar ao topo */
.back-button {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    background: var(--primary-coral, #FC7A57);
    color: #fff;
    border: none;
    padding: 0.45rem 1.1rem 0.45rem 0.9rem;
    border-radius: 25px;
    /* font-family: 'Thank You Regular', 'Open Sans', sans-serif; */
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,1,.7,1.2);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 1000;
    opacity: 0.7;
    box-shadow: none;
}
.back-button i {
    font-size: 1.05rem;
    transition: color 0.2s;
}
.back-button:hover, .back-button:focus {
    background: var(--primary-pink, #E62987);
    color: #fff;
    opacity: 1;
    outline: none;
}
.back-button:hover i, .back-button:focus i {
    color: #fff;
}

/* Tablets - Responsividade média */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .team-member:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .team-photo {
        height: 300px;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        margin-top: 0;
    }
    
    .story-hero {
        min-height: 35vh;
        padding: 3rem 1.5rem 2rem;
    }
    
    .story-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .story-hero p {
        font-size: 1rem;
    }
    
    .story-content {
        padding: 2rem 1.5rem;
    }
    
    .story-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .story-block:nth-child(even) {
        direction: ltr;
    }
    
    .story-block-image {
        order: -1;
        width: 250px;
        height: 250px;
        margin: 0 auto 1rem;
    }
    
    .story-block-image img {
        height: 100%;
    }
    
    .story-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .story-text {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
        text-align: left;
    }
    
    .story-text-highlight {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .team-section {
        padding: 3rem 1.5rem;
    }
    
    .team-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .team-member {
        border-radius: 200px 200px 25px 25px;
    }
    
    .team-photo {
        height: 280px;
        margin: 0;
        padding: 0;
        display: block;
        object-position: center top;
    }
    
    .team-info {
        padding: 2rem 1.5rem;
        margin: 0;
    }
    
    .team-name {
        font-size: 1.4rem;
    }
    
    .team-role {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .team-description {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .quote-highlight {
        padding: 2rem 1.5rem;
        margin: 2.5rem 0;
        font-size: 1.1rem;
        border-radius: 0 15px 15px 0;
    }
    
    .quote-highlight::before,
    .quote-highlight::after {
        font-size: 3rem;
    }
    
    .quote-highlight::before {
        top: 0.5rem;
        left: 1rem;
    }
    
    .quote-highlight::after {
        bottom: 0.5rem;
        right: 1rem;
    }
    
    .back-button {
        top: 0.7rem;
        right: 0.7rem;
        font-size: 0.82rem;
        padding: 0.32rem 0.8rem 0.32rem 0.7rem;
    }
    .back-button i {
        font-size: 0.95rem;
    }
    .sidebar-logo {
      display: none !important;
    }
}
