@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    scroll-behavior: smooth;
}

header {
    background-color: #0056b3;
    color: black;
    padding: 10px 20px;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    height: 80px;
    z-index: 1000;
    box-sizing: border-box;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header img { 
    width: 250px;        /* Ajuste o tamanho conforme necessário */
    object-fit: contain; /* Impede que a imagem seja cortada ou distorcida */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: #ff6600;
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #ff6600;
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6600, #0056b3);
    animation: shimmer 2s infinite linear;
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

main {
    padding-top: 120px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2em;
    padding-right: 2em;
    padding-bottom: 2em;
}

.hero {
    background-image: url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4em 2em;
    border-radius: 10px;
    margin-bottom: 2em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 1;
}

.hero * {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    background-color: #ff6600;
    color: white;
    padding: 0.8em 1.5em;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1em;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #e65c00;
    transform: scale(1.05);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5em;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1em;
}

.product-card h3 {
    color: #0056b3;
    margin-bottom: 0.5em;
}

footer {
    background-color: #0056b3;
    color: white;
    text-align: center;
    padding: 1em;
    margin-top: auto;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    margin: 2em 0;
}

.loading-spinner::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top-color: #ff6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos específicos para a página "Quem Somos" */
.quem-somos-page .about-section {
    background-color: white;
    padding: 2em;
    border-radius: 10px;
    margin-bottom: 2em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.quem-somos-page .about-section h2 {
    color: #0056b3;
    margin-bottom: 1em;
    font-size: 1.8em;
}

.quem-somos-page .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 3em;
    padding: 2em 0;
}

.quem-somos-page .timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.quem-somos-page .left {
    left: -10%;
}

.quem-somos-page .right {
    left: 50%;
}

.quem-somos-page .left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 20px;
    border: medium solid #007bff;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #007bff;
}

.quem-somos-page .right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 20px;
    border: medium solid #007bff;
    border-width: 10px 10px 10px 0;
    border-color: transparent #007bff transparent transparent;
}

.quem-somos-page .right::after {
    left: -16px;
}

.quem-somos-page .timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 3em;
    padding: 2em 0;
    position: relative;
}

.quem-somos-page .timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 90px;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #ff6600, #0056b3);
}

.quem-somos-page .timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.quem-somos-page .timeline-item::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: #ff6600;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #0056b3;
    margin-top: 5px;
    z-index: 1;
}

.quem-somos-page .timeline-content {
    background-color: white;
    padding: 1em 1.5em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
}

.quem-somos-page .timeline-content h3 {
    margin-top: 0;
    color: #0056b3;
    font-size: 1.2em;
}

.quem-somos-page .timeline-content p {
    margin: 0.5em 0 0;
    line-height: 1.5;
}

  .quem-somos-page .left,
  .quem-somos-page .right {
    left: 0 !important;
  }

  .quem-somos-page .left::before,
  .quem-somos-page .right::before {
    left: 60px;
    border: medium solid #007bff;
    border-width: 10px 10px 10px 0;
    border-color: transparent #007bff transparent transparent;
    right: auto;
  }

  .quem-somos-page .right::after {
    left: 15px;
  }

  .contact-info, .map-container {
    flex: 1;                 /* Distribui o espaço de forma igual */
    background-color: white;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 280px;        /* Garante largura mínima */
    box-sizing: border-box;
}

.map-container {
    height: 400px;           /* altura fixa definida claramente */
    overflow: hidden;        /* impede vazamentos visuais */
    padding: 1em;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Títulos alinhados visualmente */
.contact-info h2, .map-container h2 {
    margin-top: 0;
    color: #0056b3;
    text-align: center;
}
.contact-info {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.social-media a {
    color: #0056b3;
    font-size: 30px;
    margin: 0 10px;
    transition: transform 0.3s, color 0.3s;
  }
  
  .social-media a:hover {
    transform: scale(1.2);
  }
  
  .social-media a:hover .fa-whatsapp-square {
    color: #25D366; /* Verde WhatsApp */
  }

  .social-media a:hover .fa-instagram-square {
    color: #E1306C; /* Rosa oficial Instagram */
  }

  .social-media a:hover .fa-facebook-square {
    color: #3b5998; /* Azul Facebook */
  }

/* Responsividade perfeita para telas menores */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        padding-left: 1em;
        padding-right: 1em;
    }

    .map-container, .contact-info {
        width: 100%;
        height: auto;
    }

    .map-container {
        height: 300px;
    }
}
/* Ajustes complementares para página inicial usando seu estilo atual */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1em;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeInUp 0.6s ease both;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 1px solid #ff6600;
}

.product-card img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background-color: #f4f4f4;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-card img:hover {
    transform: scale(1.05);
}

.product-card h3 {
    margin-top: auto;
    font-size: 1.2em;
    color: #0056b3;
    margin-bottom: 10px;
}

.view-details-btn {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.view-details-btn:hover {
    background-color: #e65c00;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .product-card img {
        width: 150px;
        height: 150px;
    }

    .view-details-btn {
        padding: 8px 16px;
    }

    header img {
        width: 180px;
    }
}
/* ---- Skeleton Loading Style ---- */
.skeleton-card {
    background: #e0e0e0;
    border-radius: 10px;
    padding: 1.5em;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-img, .skeleton-text, .skeleton-btn {
    background: #ccc;
    border-radius: 6px;
    margin: 0.5em auto;
}

.skeleton-img {
    width: 100%;
    height: 150px;
}

.skeleton-text {
    width: 80%;
    height: 20px;
}

.skeleton-btn {
    width: 50%;
    height: 35px;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/* Responsividade extra para telas menores que 768px */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 10px;
        text-align: center;
    }

    header img {
        width: 180px;
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav ul li {
        margin: 0.5em 0;
    }

    .hero {
        padding: 2em 1em;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    .cta-button {
        padding: 0.6em 1.2em;
        font-size: 0.9em;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1em;
        padding: 1em;
    }

    .product-card {
        padding: 1em;
    }

    .product-card img {
        width: 140px;
        height: 140px;
    }

    footer {
        font-size: 0.85em;
        padding: 0.8em;
    }
}

/* Responsividade adicional para telas bem pequenas (ex: 480px) */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 0.95em;
    }

    .product-card h3 {
        font-size: 1em;
    }

    .view-details-btn {
        font-size: 0.9em;
        padding: 8px 14px;
    }

    nav ul li a {
        font-size: 0.95em;
    }

    .map-container {
        height: 250px;
    }

    .social-media a {
        font-size: 24px;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile nav */
@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 80px;
        right: 0;
        background-color: #0056b3;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 1em 0;
    }

    nav.show {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

