/* ============================================
   GRUPO USINANDO — Folha de estilo compartilhada
   Usada por: index, empresa, servicos, projetos, contato
   ============================================ */

/* ---------- Variáveis ---------- */
:root {
    --deep-blue: #eef5fc;
    --panel-blue: #e3eefb;
    --panel-blue-2: #d6e6f8;
    --primary: #1565c0;
    --primary-light: #1e88e5;
    --accent: #00a86b;
    --text: #14283b;
    --text-muted: rgba(20, 40, 59, 0.74);
    --text-faint: rgba(20, 40, 59, 0.55);
    --border-blue: rgba(21, 101, 192, 0.2);
    --header-h: 70px;
    --max-w: 1400px;
}

/* ---------- Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--deep-blue);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Header / Nav ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-blue);
    box-shadow: 0 2px 16px rgba(21, 101, 192, 0.07);
    z-index: 1000;
}

nav {
    max-width: var(--max-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.25s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.25s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--text);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.cta-button {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 123, 255, 0.45);
}

/* mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
    margin-left: auto;
}

/* ---------- Títulos de seção ---------- */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 1rem;
    font-size: 1.05rem;
}

/* ---------- Hero (home) ---------- */
.hero {
    min-height: calc(100vh - var(--header-h));
    margin-top: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background:
        radial-gradient(circle at 70% 30%, rgba(0, 123, 255, 0.18), transparent 55%),
        linear-gradient(135deg, var(--panel-blue), var(--deep-blue));
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 70% 30%, rgba(0, 123, 255, 0.22), transparent 55%),
        linear-gradient(135deg, rgba(10, 15, 24, 0.88), rgba(10, 15, 24, 0.72));
}

.hero-content {
    max-width: 820px;
    position: relative;
    z-index: 2;
}

.hero .eyebrow {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #9ed2ff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: #fff;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 620px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
    transition: transform 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border-blue);
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-ghost:hover {
    border-color: var(--primary-light);
    background: rgba(21, 101, 192, 0.08);
}

.hero .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
}

/* ---------- Stats ---------- */
.stats {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stats > div {
    background: rgba(21, 101, 192, 0.06);
    border: 1px solid var(--border-blue);
    border-radius: 12px;
    padding: 1.6rem 1rem;
}

.stat-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* ---------- Seções genéricas ---------- */
.section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 100px 2rem;
}

.section--alt {
    background: linear-gradient(180deg, var(--panel-blue-2), var(--deep-blue));
}

/* ---------- Cards de serviço ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: rgba(0, 123, 255, 0.05);
    border: 1px solid var(--border-blue);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card .icon {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.97rem;
}

/* ---------- Filtros de projetos ---------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 2.5rem 0 1rem;
}

.filter-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(0, 123, 255, 0.05);
    border: 1px solid var(--border-blue);
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    color: var(--text);
    border-color: var(--primary-light);
}

.filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: transparent;
}

/* ---------- Grid de projetos ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--panel-blue);
    border: 1px solid var(--border-blue);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
}

.project-thumb {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.25), rgba(0, 168, 255, 0.1));
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.06);
}

.service-media {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-body {
    padding: 1.5rem;
}

.project-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: 0.6rem;
}

.project-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ---------- Grade de logos de clientes ---------- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.2rem;
    margin: 2.5rem auto 0;
    max-width: 1040px;
}

.client-logo {
    background: #ffffff;
    border: 1px solid var(--border-blue);
    border-radius: 10px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #2b3f57;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(20, 40, 59, 0.12);
}

.client-logo img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

/* ---------- CTA final ---------- */
.cta-section {
    text-align: center;
    padding: 100px 2rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 123, 255, 0.18), transparent 60%),
        var(--deep-blue);
}

.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* ---------- Forms ---------- */
input,
textarea {
    font-family: 'Inter', sans-serif;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--panel-blue-2);
    border-top: 1px solid var(--border-blue);
    color: var(--text-faint);
}

.footer-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3.5rem 2rem 2.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
}

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.2rem;
}

.footer-col p {
    margin-bottom: 0.9rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-col strong {
    color: var(--primary-light);
    font-weight: 600;
}

.site-footer a {
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.site-footer a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.4rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-faint);
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
    /* Remove o blur no mobile: backdrop-filter no header recorta o menu fixed */
    header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #ffffff;
    }

    .nav-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: var(--header-h);
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--panel-blue);
        width: 240px;
        height: calc(100vh - var(--header-h));
        padding: 1.5rem;
        border-left: 1px solid var(--border-blue);
        box-shadow: -10px 0 30px rgba(20, 40, 59, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        margin-left: 0;
        z-index: 1001;
    }

    nav ul.open {
        transform: translateX(0);
    }

    nav ul li {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(0, 123, 255, 0.1);
    }

    .cta-button {
        display: none;
    }

    /* grids de 2 colunas viram 1 coluna no mobile */
    section[style*="grid-template-columns: 1fr 1fr"],
    section > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .section,
    .hero {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}

/* ---------- Logo como link ---------- */
a.logo {
    display: inline-block;
}

/* ---------- Faixa de destaque (home) ---------- */
.promo-band {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 1.6rem 2rem;
}

.promo-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    flex-wrap: wrap;
    text-align: center;
}

.promo-inner p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

.promo-inner p strong {
    font-weight: 800;
}

.promo-inner.stack {
    flex-direction: column;
    gap: 1rem;
}

.promo-inner .promo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.02rem;
    letter-spacing: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    max-width: 820px;
}

.btn-light {
    background: #fff;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

/* ---------- Cards de serviço com foto (home) ---------- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.svc-card {
    background: rgba(0, 123, 255, 0.05);
    border: 1px solid var(--border-blue);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.svc-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.svc-body {
    padding: 1.5rem;
}

.svc-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.svc-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.svc-link {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---------- Fábricas (empresa) ---------- */
.facility {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.facility img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-blue);
}

.facility h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.facility p {
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

@media (max-width: 760px) {
    .facility {
        grid-template-columns: 1fr;
    }
    .facility--reverse > div:first-child {
        order: 2;
    }
}

/* ---------- Parque de máquinas (soluções) ---------- */
.machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.machine-cat {
    background: rgba(0, 123, 255, 0.05);
    border: 1px solid var(--border-blue);
    border-radius: 12px;
    padding: 1.8rem;
}

.machine-cat h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.machine-cat ul {
    list-style: none;
}

.machine-cat li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 123, 255, 0.08);
    font-size: 0.92rem;
}

.machine-cat li:last-child {
    border-bottom: none;
}

.machine-cat li strong {
    color: var(--text);
    font-weight: 600;
}

/* ---------- Faixa de título com breadcrumb (páginas internas) ---------- */
.page-hero {
    margin-top: var(--header-h);
    padding: 64px 2rem;
    background: linear-gradient(135deg, #e3eefb, #eef5fc);
    border-bottom: 1px solid var(--border-blue);
}

.page-hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text);
}

.breadcrumb {
    color: var(--text-faint);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

/* ---------- Galeria de imagens (estilo grade com zoom) ---------- */
.gallery-intro ul {
    color: var(--text-muted);
    list-style: none;
    margin-top: 1rem;
    columns: 2;
    column-gap: 2.5rem;
}

.gallery-intro li {
    padding: 0.35rem 0;
}

.gallery-intro li::before {
    content: "▸ ";
    color: var(--primary-light);
}

@media (max-width: 600px) {
    .gallery-intro ul { columns: 1; }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-blue);
    background: var(--panel-blue);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .ov {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0);
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.gallery-item:hover .ov {
    background: rgba(0, 123, 255, 0.35);
    opacity: 1;
}

.gallery-item .ov span {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 8, 13, 0.93);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 92%;
    max-height: 88%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}
