@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --color-yellow: #fdd000;
    --color-footer: #283139;
    --color-text: #666666;
    --color-heading: #333333;
    --color-border: #e2e2e2;
    --color-red-100: #fbdede;
    --color-red-800: #7f1d1d;
    --font-base: 'Open Sans', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

a, button { transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }

body {
    margin: 0;
    font-family: var(--font-base);
    font-weight: 300;
    color: var(--color-text);
    background: #fff;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

img { max-width: 100%; display: block; -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-narrow { max-width: 800px; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.brand-wordmark img { height: 34px; display: block; }

.menu-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--color-heading);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
    position: fixed;
    top: 88px;
    left: 1rem;
    right: 1rem;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 0.25rem 1.25rem;
    border-radius: 12px;
    border-top: 3px solid var(--color-yellow);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    transform-origin: top center;
    transform: scaleY(0.85) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
    z-index: 55;
}

.site-nav.open {
    transform: scaleY(1) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-nav a {
    color: rgba(0,0,0,0.7);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--color-border);
    text-transform: none;
    letter-spacing: normal;
}

.site-nav a:last-child { border-bottom: none; }

.site-nav a.active,
.site-nav a:hover { color: var(--color-yellow); }

@media (min-width: 900px) {
    .menu-toggle { display: none; }

    .site-nav {
        position: static;
        flex-direction: row;
        transform: none;
        padding: 0;
        gap: 3rem;
        background: none;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        overflow: visible;
        max-height: none;
    }

    .site-nav a {
        border-bottom: none;
        padding: 0.25rem 0;
        font-size: 0.9rem;
        position: relative;
    }

    .site-nav a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 0;
        height: 3px;
        border-radius: 2px;
        background: var(--color-yellow);
        transition: width 0.25s ease;
    }

    .site-nav a:hover::after,
    .site-nav a.active::after { width: 100%; }

    .site-nav a:hover,
    .site-nav a.active { color: rgba(0,0,0,0.7); }
}

/* ── Page hero (interior pages) ───────────────────────── */
.page-hero {
    background-image: linear-gradient(135deg, #000000, #5b5b5b), var(--hero-img);
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 4rem 0;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 300;
    animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Home hero ────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, #000000, #5b5b5b);
}

.hero-slider { width: 100%; aspect-ratio: 4/1; height: auto; min-height: 0; overflow: hidden; background: #1c1e21; }

@media (max-width: 700px) {
    .hero-slider { aspect-ratio: 4/3; }
    .hero-slide { background-position: center; }
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.hero-arrow:hover { background: var(--color-yellow); color: var(--color-heading); }
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

.hero-dots {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.active { background: var(--color-yellow); transform: scale(1.2); }

@media (max-width: 700px) {
    .hero-arrow { width: 34px; height: 34px; font-size: 1.1rem; }
    .hero-prev { left: 0.5rem; }
    .hero-next { right: 0.5rem; }
}

.hero-content { position: relative; z-index: 1; max-width: 640px; padding: 3rem 1.25rem; }

.hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 300;
    margin: 0 0 1rem;
    line-height: 1.25;
    animation: fadeInUp 0.7s ease both;
}

.hero-content p { font-size: 1rem; color: rgba(255,255,255,0.85); margin: 0 0 1.5rem; animation: fadeInUp 0.7s ease 0.1s both; }

.btn-cta {
    display: inline-block;
    background: var(--color-footer);
    color: #fff;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-cta:hover { background: var(--color-yellow); color: var(--color-heading); }
.btn-cta-light { background: var(--color-yellow); color: var(--color-heading); }

/* ── Intro / dividers ─────────────────────────────────── */
.section-intro { padding: 3.5rem 0 2.5rem; text-align: center; }
.section-intro p { max-width: 640px; margin: 0 auto; font-size: 1.375rem; line-height: 1.8; }

.divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin: 2.5rem 0;
}

.section-eyebrow {
    color: var(--color-yellow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.0625rem;
    margin: 0 0 0.65rem;
}

.section-title {
    font-size: clamp(1.4rem, 3.5vw, 1.625rem);
    font-weight: 300;
    color: var(--color-heading);
    margin: 0 0 2rem;
    text-align: center;
}

.section-servicos, .section-portfolio { padding: 1rem 0 3.5rem; }
.section-servicos-page, .section-portfolio-page { padding-top: 0.5rem; }

.section-texto { padding: 3rem 0; }
.texto-grande { font-size: 0.875rem; line-height: 1.9; margin: 0 0 1.25rem; }
.texto-grande:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
    .section-intro { padding: 1.75rem 0 1.25rem; }
    .divider { margin: 1.25rem 0; }
    .section-servicos, .section-portfolio { padding-top: 0.25rem; }
    .section-title { margin-bottom: 1.25rem; }
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) { .sobre-grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }

.sobre-fotos { display: flex; flex-direction: column; gap: 1rem; }
.sobre-fotos img { width: 100%; border-radius: 4px; object-fit: cover; }

.texto-vazio { color: var(--color-text); text-align: center; }

/* ── Serviços (categorias em lista, como no site original) ── */
.servicos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 700px) { .servicos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .servicos-grid { grid-template-columns: repeat(3, 1fr); } }

.servico-card { padding: 0; }

.servico-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.servico-icone-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-yellow);
}

.servico-card p { margin: 0; color: var(--color-text); font-size: 0.95rem; }
.servico-icone { display: none; }

/* ── Portfólio (grid edge-a-edge, como no site original) ── */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 1rem;
}

@media (min-width: 700px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .portfolio-grid { grid-template-columns: repeat(5, 1fr); } }

.portfolio-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #1c1e21;
}

.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.portfolio-card:hover img { transform: scale(1.06); }

.portfolio-card-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0.85rem;
    background: linear-gradient(0deg, rgba(20,21,23,0.9), rgba(20,21,23,0));
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.portfolio-card:hover .portfolio-card-info { opacity: 1; }

.portfolio-card-titulo { margin: 0; font-weight: 300; font-size: 0.9rem; }
.portfolio-card-categoria { margin: 0.15rem 0 0; font-size: 0.78rem; color: rgba(255,255,255,0.75); }

.link-ver-mais {
    display: block;
    text-align: center;
    font-weight: 600;
    color: var(--color-heading);
    margin-top: 2rem;
}

.link-ver-mais:hover { color: var(--color-yellow); }

.section-cta { display: none; }

/* ── Página de case (detalhe do portfólio) ───────────────── */
.case-cover { width: 100%; aspect-ratio: 4/1; object-fit: cover; background: #1c1e21; display: block; }

@media (max-width: 700px) {
    .case-cover { aspect-ratio: 4/3; }
}

.case-titulo {
    background: var(--color-footer);
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
}

.case-titulo h1 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 300; text-transform: uppercase; letter-spacing: 0.02em; }

.case-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 700px) { .case-gallery { grid-template-columns: repeat(3, 1fr); } }

.case-gallery-item { display: block; aspect-ratio: 1/1; overflow: hidden; background: #1c1e21; }
.case-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.case-gallery-item:hover img { transform: scale(1.06); }

/* ── Lightbox (modal de imagem da galeria) ───────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(12,13,14,0.85);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox.open { display: flex; opacity: 1; }

.lightbox-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 82vh;
    transform: translateY(16px) scale(0.97);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.3s ease;
}

.lightbox.open .lightbox-img-wrap { transform: translateY(0) scale(1); opacity: 1; }

.lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    box-shadow: 0 25px 60px rgba(0,0,0,0.55), 0 4px 16px rgba(0,0,0,0.35);
    border-radius: 2px;
    touch-action: pan-y;
    cursor: pointer;
}

.lightbox-counter {
    text-align: center;
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    margin-top: 1rem;
    letter-spacing: 0.03em;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.lightbox-close:hover { color: var(--color-yellow); }

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-arrow:hover { background: var(--color-yellow); color: var(--color-heading); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

@media (max-width: 700px) {
    .lightbox-arrow { width: 40px; height: 40px; font-size: 1.25rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

/* ── Contato ──────────────────────────────────────────── */
.section-contato { padding: 3.5rem 0; }

.contato-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 900px) { .contato-grid { grid-template-columns: 1.4fr 1fr; } }

.contato-info p { margin: 0 0 1.25rem; font-size: 0.95rem; }
.contato-info strong { display: block; margin-bottom: 0.15rem; color: var(--color-heading); font-weight: 700; }

.contato-form { display: flex; flex-direction: column; gap: 1rem; }

.field { display: block; }
.field-label { display: none; }

.field-input, .field-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
}

.field-input:focus, .field-textarea:focus { outline: none; border-color: var(--color-yellow); }

.alert-banner { padding: 0.9rem 1.1rem; font-size: 0.95rem; border-left: 3px solid transparent; }
.alert-banner.alert-success { background: rgba(253, 208, 0, 0.14); border-left-color: var(--color-yellow); color: var(--color-heading); }
.alert-banner.alert-red { background: var(--color-red-100); color: var(--color-red-800); }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--color-footer); color: rgba(255,255,255,0.65); padding: 3rem 0 1.5rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-brand p { margin: 0.75rem 0 0; font-size: 0.9rem; }
.footer-heading { color: var(--color-yellow); font-weight: 700; margin: 0 0 0.9rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-paginas p { margin: 0 0 0.6rem; font-size: 0.75rem; }
.footer-paginas a:hover { color: var(--color-yellow); }
.footer-contato p { margin: 0 0 0.6rem; display: block; font-size: 0.75rem; }
.footer-contato a { color: var(--color-yellow); }
.footer-contato a:hover { color: #fff; }

.footer-redes-icons { display: flex; gap: 0.6rem; }
.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { background: var(--color-yellow); color: var(--color-footer); }

.footer-contato { position: relative; padding-left: 1rem; border-left: 3px solid var(--color-yellow); }

/* ── Botão flutuante do WhatsApp ──────────────────────────── */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { background: #1ebe57; transform: scale(1.06); color: #fff; }

@media (max-width: 700px) {
    .whatsapp-float { width: 50px; height: 50px; right: 1rem; bottom: 1rem; }
    .whatsapp-float svg { width: 26px; height: 26px; }
}

.footer-copy { padding-top: 1.5rem; font-size: 0.875rem; }
.footer-copy p { margin: 0; }
