/* ==========================================
   PROTOTVOLT ENGENHARIA - STYLESHEET
   ========================================== */

:root {
    --primary: #0f2c5c;
    --primary-light: #1a4a9a;
    --secondary: #f7941d;
    --secondary-hover: #e08512;
    --dark: #0b1120;
    --text: #334155;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f1f5f9;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container {
    width: 90%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(15,44,92,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,44,92,0.45);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: #fff;
}

.btn-full { width: 100%; }

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
}

.header.scrolled .logo { color: var(--primary); }

.logo-icon { font-size: 1.5rem; line-height: 1; }

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }

.logo-text strong { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.5px; }

.logo-text small { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.9; }

.navbar { display: flex; align-items: center; gap: 2rem; }

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    position: relative;
}

.header.scrolled .nav-link { color: var(--text); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active { color: #fff; }

.header.scrolled .nav-link:hover, .header.scrolled .nav-link.active { color: var(--primary); }

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.instagram-nav { color: var(--secondary) !important; }

.btn-nav { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px; height: 2px;
    background: #fff;
    transition: var(--transition);
    border-radius: 2px;
}

.header.scrolled .mobile-toggle span { background: var(--primary); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,17,32,0.92) 0%, rgba(15,44,92,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: #fff;
    padding-top: 6rem;
}

.tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(247,148,29,0.15);
    color: var(--secondary);
    border: 1px solid rgba(247,148,29,0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-text {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down span {
    display: block;
    width: 24px; height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    position: relative;
}

.scroll-down span::before {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

/* Sections */
.section { padding: 6rem 0; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }

.section-subtitle {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-desc { color: var(--text-light); font-size: 1.05rem; }

/* Sobre */
.sobre { background: var(--bg); }

.grid-sobre {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-imagem { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

.sobre-imagem img { width: 100%; height: 100%; object-fit: cover; min-height: 500px; }

.experience-badge {
    position: absolute;
    bottom: -20px; left: -20px;
    background: var(--secondary);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.experience-badge .num { font-size: 2.5rem; font-weight: 800; line-height: 1; }

.experience-badge .txt { font-size: 0.8rem; font-weight: 600; line-height: 1.3; margin-top: 4px; text-transform: uppercase; }

.sobre-conteudo p { margin-bottom: 1.5rem; color: var(--text-light); font-size: 1.05rem; }

.sobre-lista { list-style: none; margin-bottom: 2rem; }

.sobre-lista li { display: flex; gap: 1rem; margin-bottom: 1.25rem; }

.sobre-lista .icon {
    width: 28px; height: 28px;
    background: rgba(15,44,92,0.08);
    color: var(--primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.sobre-lista strong { display: block; color: var(--dark); margin-bottom: 2px; }

.sobre-lista p { margin: 0; font-size: 0.95rem; }

/* Serviços */
.servicos { background: var(--bg-alt); }

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servico-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.servico-icon {
    width: 56px; height: 56px;
    background: rgba(15,44,92,0.06);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.servico-icon svg { width: 28px; height: 28px; stroke: currentColor; }

.servico-card h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 0.75rem; }

.servico-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }

/* Stats */
.stats { background: var(--primary); padding: 4rem 0; color: #fff; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item { position: relative; }

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}

.stat-num {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Projetos */
.projetos { background: var(--bg); }

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.projeto-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.projeto-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.projeto-card:hover img { transform: scale(1.1); }

.projeto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,17,32,0.9) 0%, rgba(11,17,32,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projeto-card:hover .projeto-overlay { opacity: 1; }

.projeto-overlay h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }

.projeto-overlay span { font-size: 0.85rem; opacity: 0.9; }

.center-btn { text-align: center; }

/* Contato */
.contato { background: var(--bg-alt); }

.grid-contato {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contato-info h2 { margin-bottom: 1rem; }

.contato-info > p { color: var(--text-light); margin-bottom: 2rem; font-size: 1.05rem; }

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.info-icon { font-size: 1.5rem; line-height: 1; }

.info-item strong { display: block; color: var(--dark); font-size: 0.95rem; margin-bottom: 2px; }

.info-item p, .info-item a { color: var(--text-light); font-size: 0.95rem; transition: color 0.2s; }

.info-item a:hover { color: var(--secondary); }

.social-links { margin-top: 2rem; display: flex; gap: 0.75rem; }

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.social-btn.instagram:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(220,39,67,0.3); }

.social-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Form */
.contato-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15,44,92,0.08);
}

.form-note { display: block; margin-top: 1rem; text-align: center; color: var(--text-light); font-size: 0.85rem; }

.form-note a { color: var(--secondary); font-weight: 600; text-decoration: underline; }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 60px; height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulseWhats 2s infinite;
}

.whatsapp-float:hover { transform: scale(1.1); background: #128c7e; }

.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }

@keyframes pulseWhats {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 4rem 0 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo { color: #fff; margin-bottom: 1rem; }

.footer-brand p { max-width: 260px; font-size: 0.95rem; }

.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--secondary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-social { display: flex; gap: 1rem; }

.footer-social a {
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
}

.footer-social a:hover { color: var(--secondary); }

.footer-social svg { width: 22px; height: 22px; fill: currentColor; }

/* Responsive */
@media (max-width: 992px) {
    .grid-sobre, .grid-contato { grid-template-columns: 1fr; gap: 3rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2)::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sobre-imagem img { min-height: 350px; }
    .experience-badge { left: 1rem; bottom: 1rem; }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        gap: 1.5rem;
    }
    .navbar.active { right: 0; }
    .nav-list { flex-direction: column; gap: 1.25rem; }
    .nav-link { color: var(--text) !important; font-size: 1rem; }
    .btn-nav { width: 100%; margin-top: 1rem; }
    .mobile-toggle { display: flex; z-index: 1001; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item::after { display: none !important; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .hero-content { padding-top: 5rem; }
    .section { padding: 4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .whatsapp-float { animation: none; }
    .scroll-down span::before { animation: none; }
}
