/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
}

header .container {
    display: flex;
    flex-direction: column;
}

.contact-info-top {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust as needed */
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 200vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-logo {
    width: 150px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero-whatsapp-button {
    display: inline-block;
    background-color: yellow;
    color: black;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero-whatsapp-button:hover {
    background-color: #e0e000;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-quote {
    background-color: #ff6600;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Video Background Section */
.video-background-section {
    position: relative;
    overflow: hidden;
    height: 50vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.video-background-section .background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    background-size: cover;
}

.video-background-section .container {
    z-index: 1;
    position: relative;
    background-color: rgba(0, 0, 0, 0.5); /* Optional: Add an overlay for better text readability */
    padding: 20px;
    border-radius: 8px;
}

/* Services Section */
.services {
    padding: 50px 0;
    text-align: center;
    background-color: #f4f4f4;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-item img {
    height: 60px;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.2rem;
}

/* About Section */
.about {
    padding: 50px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    gap: 2rem;
}

.about-text, .about-tech {
    flex: 1;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* About Section (Sobre Nós Page) */
.about-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.info-box {
    background-color: #e0f7fa;
    padding: 1.5rem;
    border-left: 5px solid #007BFF;
    margin-top: 2rem;
    text-align: left;
}

.info-box p {
    margin: 0;
    font-size: 1.1rem;
}

.service-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-list li {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    font-weight: bold;
}

/* Segments Section */
.segments {
    padding: 50px 0;
    text-align: center;
    background-color: #f4f4f4;
}

.segments h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.segment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.segment-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.segment-card img {
    height: 60px;
    margin-bottom: 1rem;
}

.segment-card h3 {
    font-size: 1.2rem;
}

/* Products Section */
.products {
    padding: 50px 0;
    background-color: #fff;
}

.products h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.product-item {
    background-color: #f4f4f4;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-item h3 {
    font-size: 1.2rem;
}

/* Product Detail Hero */
#product-detail-hero {
    background-color: #555;
    padding: 60px 0;
}

#product-detail-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    font-size: 1rem;
    color: #ccc;
}

.breadcrumb a {
    color: #ccc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-contact p {
    margin: 0.5rem 0;
}

.social-links a img {
    height: 30px;
    margin: 0 0.5rem;
}

.copyright {
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info-top {
        justify-content: center;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .burger-menu {
        display: block;
        position: absolute;
        right: 5%;
        top: 25px;
    }

    .about-content {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Responsive Design for Sobre Nós */
    .about-image {
        flex-direction: column;
    }
}

/* Quotation Form */
#quotation-form {
    padding: 40px 0;
}

#quotation-form .container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

#quotation-form .form-container {
    flex: 2;
    min-width: 300px;
}

#quotation-form .contact-sidebar {
    flex: 1;
    min-width: 250px;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
}

#quotation-form .contact-sidebar h3 {
    margin-top: 0;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: #FFD700; /* Amarelo */
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #FFA500; /* Laranja mais escuro no hover */
}

@media (max-width: 768px) {
    #quotation-form .container {
        flex-direction: column;
    }
}

/* Catalogs Page */
#catalog-grid .catalog-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#catalog-grid .catalog-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

#catalog-grid .catalog-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

#catalog-grid .catalog-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

#technical-norms table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#technical-norms th,
#technical-norms td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

#technical-norms th {
    background-color: #f4f4f4;
    font-weight: bold;
}

#technical-norms tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Contact Page */
#contact-info {
    padding: 40px 0;
}

#contact-info .container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

#contact-info .contact-details {
    flex: 1;
    min-width: 300px;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
}

#contact-info .contact-details h2 {
    margin-top: 0;
    color: #333;
}

#contact-info .contact-details p {
    margin-bottom: 10px;
}

#contact-info .contact-form {
    flex: 2;
    min-width: 300px;
}

#contact-info .contact-form h2 {
    margin-top: 0;
    color: #333;
}

@media (max-width: 768px) {
    #contact-info .container {
        flex-direction: column;
    }
}

.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.whatsapp:hover {
    background-color: #1da851;
}

.whatsapp svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* General Section Styles */
.section {
    padding: 60px 0;
}

.section--light {
    background-color: #f9f9f9;
}

.section--dark {
    background-color: #333;
    color: #fff;
}

.section__header {
    text-align: center;
    margin-bottom: 40px;
}

.section__header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333; /* Adjust for dark sections */
}

.section--dark .section__header h2 {
    color: #fff;
}

.section__header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Grid Styles */
.grid {
    display: grid;
    gap: 30px;
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card Styles */
.card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.section--dark .card {
    background-color: #444;
    color: #fff;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #007BFF;
}

.section--dark .card h3 {
    color: #FFD700;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
}

.card--location address p {
    margin-bottom: 5px;
}

.opening-hours {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.section--dark .opening-hours {
    border-top-color: #555;
}

.opening-hours h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 50px auto;
    width: 50%;
}

.section--dark .divider {
    border-top-color: #555;
}

/* Services Group */
.services__group ul {
    list-style: none;
    padding: 0;
}

.services__group ul li {
    background-color: #f0f0f0;
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: left;
    color: #333;
}

.section--dark .services__group ul li {
    background-color: #555;
    color: #fff;
}

/* Industries */
.industries {
    margin-top: 40px;
    text-align: center;
}

.industries h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.section--dark .industries h4 {
    color: #fff;
}

.industries ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.industries ul li {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
}

/* SEO Text */
.seo-text {
    margin-top: 50px;
    padding: 30px;
    background-color: #e9ecef;
    border-radius: 8px;
    text-align: center;
}

.section--dark .seo-text {
    background-color: #222;
    color: #eee;
}

.seo-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.section--dark .seo-text h3 {
    color: #FFD700;
}

.seo-text p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* About Image (Map) */
#map-section .about-image {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Technology Section */
#technology h2,
#technology h3 {
    color: #fff;
}

#technology .info-box {
    background-color: #555;
    border-left-color: #FFD700;
    color: #fff;
}

/* Segments About Section */
#segments-about .segment-card {
    background-color: #fff;
    color: #333;
}

#segments-about .segment-card img {
    filter: invert(0%); /* Ensure icons are visible on light background */
}

/* Portfolio Section */
#portfolio h2 {
    color: #fff;
}

#portfolio .service-list li {
    background-color: #555;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .section__header h2 {
        font-size: 2rem;
    }

    .grid--2, .grid--3 {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 1.5rem;
    }

    .divider {
        margin: 30px auto;
    }

    .services__group ul li {
        padding: 8px 10px;
    }

    .industries ul {
        flex-direction: column;
        align-items: center;
    }

    .seo-text {
        padding: 20px;
    }

    .seo-text h3 {
        font-size: 1.5rem;
    }

/* Container geral */
.section.section--light { padding: 40px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Grid de localizações (quatro quadrados) */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    align-items: stretch;
}

/* Cartão de localização (quadrado) */
.location-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  aspect-ratio: 1/1; /* Garante proporção 1:1 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%; /* Garante que o cartão ocupe a altura total da célula da grade */
}

/* Map Card - contêiner do mapa */
.map-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px; /* Aplica border-radius aqui para consistência */
  overflow: hidden; /* Esconde overflow para cantos arredondados */
  box-shadow: 0 2px 10px rgba(0,0,0,.04); /* Adiciona sombra para consistência */
  aspect-ratio: 1/1; /* Garante que o contêiner do mapa seja quadrado */
}

/* Wrapper responsivo do mapa */
.map-embed {
  height: 100%; /* Garante que o mapa ocupe a altura total disponível */
  width: 100%; /* Garante que o mapa ocupe a largura total disponível */
  overflow: hidden;
  border-radius: 8px; /* Mantém border-radius para o iframe interno */
  flex-grow: 1;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* Responsivo: empilha em telas menores 
@media (max-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .location-card {
    aspect-ratio: auto;
    height: auto;
  }
  */
}