

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Host Grotesk', sans-serif;
}

/* =========================================
   Header Layout (Matching Site Design)
   ========================================= */
   .header {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 15px 30px;
    background-color: transparent;
    position: relative; 
    border-bottom: 1px solid #000000;
    z-index: 10;
}

.logo img {
    background-color: transparent;
    display: block;
    cursor: pointer;
}

.menu-toggle {
    position: absolute;
    right: 30px; 
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle img {
    width: 30px;
    height: auto;
    display: block;
}


nav {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Sits immediately below the header */
    left: 0;
    width: 100%;
    
    background-color: #ffffff; 
    box-shadow: none; 
    border-bottom: 1px solid #000000;
    z-index: 10;
}

nav.active {
    display: block;
}

.nav-menu {
    display: flex;
    flex-direction: column; 
    align-items: stretch;
    padding: 0; 
    gap: 0; 
    list-style: none;
}

.nav-menu li {
    border-top: 1px solid #000000;
    height: 60px; 
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: #000000;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 30px;
    
}

   #navLang ul {

    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Add the physical compartment borders for each language */
#navLang li {
    border-top: 1px solid #000000;
    height: 60px; /* Fixed height for mechanical feel */
    display: flex;
    align-items: center;
}

/* Style the links to match the main menu */
#navLang a {
    color: #000000;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 30px; /* Aligns the text with the main menu */
}






/* =========================================
   Desktop Header (Bigger than 765px)
   ========================================= */
   @media (min-width: 766px) {
    .header {
        justify-content: space-between; 
        padding: 20px 40px;
    }

    .menu-toggle {
        display: none;
    }

        #navMenu {
            display: block !important; 
            position: static;
            width: auto;
            background-color: transparent;
            border: none;
        }
    
        #navLang {
            width: 150px;
            left: auto;
            right: 40px; 
            top: 70px;
            border-left: 1px solid #000000;
            border-right: 1px solid #000000;
        }
    
        .nav-menu {
            display: flex;
            flex-direction: row;
            gap: 6px 40px; 
            padding: 0;
        }

    .nav-menu li {
        border: none;
        height: auto;
        display: flex;
        align-items: center;
    }

    .nav-menu a {
        font-size: 0.95rem;
        font-weight: 700;
        padding: 0;
        color: #000000;
    }
}

@media (max-width: 766px) {

    #navLang{
        background: #dfdfdf;
    }
    .langBt {
        background: #dfdfdf;
    }
}




.intro-section h1 {
    font-size: 3rem; 
    /* Lighter font weight to match the thin title in the reference image */
    letter-spacing: -0.02em;
    margin-bottom: 15px;
}

.intro-section p {
    font-size: 0.85rem;
    font-weight: 500;
    /* Styles the subtitle like the small gray date in the reference */
    color: #888888; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    
    /* Adiciona estas duas linhas: */
    max-width: 700px; /* Limita a largura do texto (ajusta este valor conforme precisares) */
    line-height: 1.5; /* Dá um pouco de espaço entre as linhas se o texto quebrar */
}


.intro-section{
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Remove negative margin so it sits properly below the header */
    margin-top: 60px; 
    padding: 0 20px;
}






/* =========================================
   Category Sections & Model Grids
   ========================================= */
.category-section {
    max-width: 1200px;
    margin: 80px auto; 
    padding: 0 20px;
}

/* Styled like the 'Why Choose Us' thick border from Services */
.category-title {
    font-size: 2rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    border-top: 3px solid #000000; 
    padding-top: 20px;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
}



.wwtp-category, .wire-saw-category {
    grid-auto-rows: 420px; /* Manually define your universal card height here */
}

/* --- Card Base (Anti-softness, matching service-card) --- */
.model-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    
    background-color: #ffffff;
    border-radius: 0; 
    border: 1px solid #000000; 
    box-shadow: none; 
    transition: background-color 0.2s ease;
}




/* --- Image Container & Badge --- */
.image-wrapper {
    position: relative;
    background-color: #f4f4f4;
    width: 100%;
    aspect-ratio: 4/5; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #000000; /* Strict divider inside card */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* Sharp, industrial badge */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #000000;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 0; /* Removing pill shape */
    border: 1px solid #000000;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* --- Typography & Text Area --- */
.card-bottom {
    display: flex;
    flex-direction: column;
    padding: 25px; /* Matching .service-card padding */
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
}

.title-row h3 {
    font-size: 1.2rem;
    font-weight: 700; /* Bolded to match Services H2 */
    color: #000000;
    margin-bottom: 10px;
}

.title-row .pdf-icon {
    width: 22px; 
    height: 22px;
    opacity: 0.8; 
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.card-bottom p {
    font-size: 0.95rem;
    color: inherit; 
    line-height: 1.4; /* Tighter line height from Services */
    flex-grow: 1; 
}

/* footer */

.site-footer {
    background-color: #000000; 
    color: #d3d2d2;
    padding: 65px 10% 35px; 
    font-size: 0.9rem;
    -webkit-font-smoothing: antialiased; 
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
}

.footer-section h4 {
    font-size: 1.20rem; /* 0.85 */
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.footer-section p, 
.footer-section address {
    line-height: 1.6;
    font-style: normal;
    margin-bottom: 12px;
    color: #d3d2d2;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer a {
    color: #d3d2d2;
    text-decoration: none;
    transition: color 0.05s ease;
}

.site-footer a:hover {
    color: #ffffff; 
}

.facebook a:hover {
    color: #1877F2;
}

.instagram a:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  
  -webkit-background-clip: text;
  background-clip: text;
  
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.linkedin a:hover{
    background: linear-gradient(45deg, #004182 0%, #0A66C2 50%, #00A0DC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}



.footer-bottom {
    max-width: 1200px;
    margin: 80px auto 0;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a; 
    font-size: 0.8rem;
    color: #555555;
    text-align: left; 
}

/* =========================================
   Mobile Adjustments
   ========================================= */
   @media (max-width: 768px) {

    .site-footer {
        padding: 60px 24px 30px;
    }
    
    .footer-container {
        display: grid;
        /* Usamos auto em vez de 1fr para não esticar, e centramos a grelha */
        grid-template-columns: auto auto; 
        justify-content: center;
        gap: 48px 40px; 
    }
    
    .footer-section {
        text-align: left; 
    }
    
    .footer-bottom {
        margin-top: 60px;
        text-align: center;
    }


    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .category-section {
        margin: 50px auto;
    }

    .category-title {
        font-size: 1.6rem;
    }

    /* Keep utilitarian layout manageable on mobile */
    .models-grid {
        grid-template-columns: 
        repeat(auto-fit, 
        minmax(220px, 1fr)); 
    }
}


