/* Variáveis de cores (mantidas) */
:root {
    --primary-blue: #0a4a8d;
    --secondary-blue: #1c6fd0;
    --primary-yellow: #ffc107;
    --secondary-yellow: #ffdb70;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.section { padding: 5rem 0; }

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-yellow));
    margin: 15px auto;
    border-radius: 2px;
}

/* Header e Navegação */
.navbar {
    background: #fce120; /* Fundo amarelo definido por você */
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* CORREÇÃO: Cor do link do menu para contraste com fundo amarelo */
.nav-link {
    color: #333 !important; /* Cor escura para boa legibilidade */
    font-weight: 600;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-blue); /* Underline azul */
    transition: width 0.3s ease;
}

/* CORREÇÃO: Efeito hover do link para fundo amarelo */
.nav-link:hover {
    color: var(--primary-blue) !important; /* Cor azul ao passar o mouse */
}

.nav-link:hover:after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 74, 141, 0.85), rgba(10, 74, 141, 0.8)), url('https://taipamateriais.com.br/novo/wp-content/uploads/2025/09/IMG_6419-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 8rem 0;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-btn {
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow), #ffac00);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
    color: var(--primary-blue);
}

/* Sobre nós */
.about { background-color: white; }

.history-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.history-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.history-img {
    height: 300px;
    background: url('https://taipamateriais.com.br/novo/wp-content/uploads/2025/09/taipaloja1.jpg') center/cover;
}

.history-content { padding: 2rem; }

.years-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-weight: 800;
    max-width: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
    text-align: center;
}

.years-badge small {
    font-size: 1rem;
    font-weight: 600;
}

/* Serviços */
.services { background: var(--light-bg); }

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    border-top: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-top-color: var(--primary-yellow);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--primary-yellow);
    transform: scale(1.1);
}

/* Localização */
.location { background-color: white; }

.location-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    height: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-right: 1rem;
    min-width: 30px;
    text-align: center;
}

.location-card a {
    text-decoration: none;
    color: var(--dark-text);
    transition: color 0.3s;
}

.location-card a:hover { color: var(--primary-blue); }

/* Contato */
.contact { background: var(--light-bg); }

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-control, .form-select {
    padding: 0.8rem 1.2rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(10, 74, 141, 0.25);
}

#contactForm button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    box-shadow: 0 4px 15px rgba(10, 74, 141, 0.4);
    color: white;
}

#contactForm button[type="submit"]:hover {
    box-shadow: 0 6px 20px rgba(10, 74, 141, 0.6);
    color: white;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-yellow);
}

.footer-links a, .footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}
.footer-contact a:hover { color: white; }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Animações */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}
.fade-in { animation: fadeIn 0.5s ease forwards; }
.fade-out { animation: fadeOut 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/*
** Estilos para a Nova Seção: Nossas Lojas
*/

.store-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.store-card-img-wrapper {
    overflow: hidden; /* Garante que o zoom da imagem não ultrapasse as bordas */
    position: relative;
    height: 350px; /* Altura fixa para as imagens */
}

.store-card .img-fluid {
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem cobrir o espaço sem distorcer */
}

.store-card:hover .img-fluid {
    transform: scale(1.05); /* Efeito de zoom na imagem */
}

.store-card-content {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #eee;
}

.store-card-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.store-card-content h3 i {
    color: var(--primary-yellow);
    margin-right: 10px;
    font-size: 1.5rem;
}

.store-card-content p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.95rem;
}