/* Variáveis de cores */
:root {
    --color-primary: #24555e;
    --color-secondary: #e26613;
    --color-bg: #ffffff;
    --color-text: #333;
    --color-text-light: #fff;
}

/* Reset e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--color-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    max-width: 1024px;
    margin: 0 auto;
    width: 100%;
}

.navbar-logo {
    width: 200px;
}

.navbar-logo img {
    width: 100%;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-secondary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-bg);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    z-index: 1;
    border-radius: 4px;
    border: 1px solid #ddd;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--color-text);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
    color: var(--color-secondary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Menu hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Hero section */
.hero {
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 30%;
}

.hero.hero-50 {
    height: 50vh;
}

.hero.hero-30 {
    height: 30vh;
}



.hero-headline {
    color: var(--color-text-light);
    font-size: 2rem;
    font-weight: bold;
}

/* Section de produtos/linha */
.section-padding {
    padding: 3rem 2rem;
}

.section-centered {
    text-align: center;
}

.section-centered h1 {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.section-centered img {
    width: 200px;
    height: auto;
}

.section-centered a {
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

/* Seção Institucional */
.institutional-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    line-height: 1.8;
}

.institutional-section p {
    font-size: 1rem;
    text-align: justify;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

/* Responsividade */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .navbar-logo {
        width: 150px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        order: 3;
        margin-top: 1rem;
        list-style: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background-color: #f9f9f9;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        justify-content: center;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .hero-headline {
        font-size: 1.5rem;
        text-align: center;
    }

    .section-padding {
        padding: 2rem 1rem;
    }

    .institutional-section {
        padding: 2rem 1rem;
    }

    .institutional-section p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.5rem;
    }

    .navbar-logo {
        width: 120px;
    }

    .hero {
        padding: 1rem;
    }

    .hero-headline {
        font-size: 1.2rem;
    }

    .section-centered h1 {
        font-size: 1.5rem;
    }

    .section-centered img {
        width: 150px;
    }
}

/* Seção de Produtos */
.products-section {
    padding: 3rem 2rem;
    max-width: 1024px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.product-card p {
    color: var(--color-text);
    font-weight: 500;
}

/* Página Single Product */
.single-product {
    padding: 3rem 2rem;
    max-width: 1024px;
    margin: 0 auto;
}

.product-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.product-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.product-header h1 {
    font-size: 2rem;
    color: var(--color-text);
}

.product-breadcrumb {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.product-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-breadcrumb a:hover {
    color: var(--color-secondary);
}

.product-main {
    margin-bottom: 3rem;
    line-height: 1.8;
    color: var(--color-text);
}

.product-main h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.product-main ul,
.product-main ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.product-main li {
    margin-bottom: 0.5rem;
}

.product-main video {
    margin: 1rem 0;
    border-radius: 4px;
}

.product-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn-catalogue,
.btn-quote,
.btn-submit {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-quote,
.btn-submit {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.btn-quote:hover,
.btn-submit:hover {
    background-color: #c25511;
}

.btn-catalogue {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-catalogue:hover {
    background-color: #1a3f45;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin: 0.5rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: #1a3f45;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.btn-secondary:hover {
    background-color: #c25511;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: var(--color-bg);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #888;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-close {
    color: var(--color-text);
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-secondary);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

/* Seção de Contato */
.contact-section {
    padding: 3rem 2rem;
    max-width: 1024px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-column {
    display: flex;
    flex-direction: column;
}

.contact-column h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.address-box {
    margin-bottom: 2rem;
}

.address-box p {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 0.95rem;
}

.map-box {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Formulário */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group-half {
    margin-bottom: 0;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 4px rgba(36, 85, 94, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.email-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.email-info a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.email-info a:hover {
    color: var(--color-secondary);
}

/* Seções de Erro e Sucesso */
.error-section,
.success-section {
    padding: 4rem 2rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container,
.success-container {
    text-align: center;
    max-width: 500px;
}

.error-container h1,
.success-container h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.error-section .error-container h1 {
    color: #d32f2f;
}

.success-section .success-container h1 {
    color: #388e3c;
}

.error-container h2,
.success-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.error-container p,
.success-container p {
    color: var(--color-text);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.error-actions,
.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsividade para Contato */
@media (max-width: 768px) {
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-image {
        width: 100%;
        height: auto;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-catalogue,
    .btn-quote,
    .btn-submit,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-header h1 {
        font-size: 1.5rem;
    }

    .contact-column h3 {
        font-size: 1.2rem;
    }

    .error-container h1,
    .success-container h1 {
        font-size: 2.5rem;
    }
}