/*
Theme Name: Viatech Informática
Theme URI: https://viatech.local
Author: Viatech Informática
Description: Tema institucional da Viatech Informática (Taubaté). Feito em PHP puro, sem plugins, totalmente editável pelo painel do WordPress (Personalizar, Menus e Editor de Blocos).
Version: 1.0
Text Domain: viatech
*/

:root{
    --bg: #0d0d0d;
    --bg-alt: #161616;
    --bg-card: #1c1c1c;
    --orange: #ff7a00;
    --orange-dark: #e85d00;
    --text: #f5f5f5;
    --muted: #b3b3b3;
    --border: #2a2a2a;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
#contato, #produtos, #servicos, #assistencia-tecnica, #sobre{scroll-margin-top:90px;}
.sobre-section{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}
.sobre-image img{
    border-radius:14px;
    border:1px solid var(--border);
    box-shadow:0 20px 50px rgba(255,122,0,.12);
    width:100%;
    height:auto;
}
.sobre-content{color:var(--muted); font-size:16px;}
.sobre-content p{margin-bottom:16px;}
.sobre-content h2{
    font-size:clamp(24px,3vw,34px);
    color:var(--text);
    margin:0 0 20px;
}
@media(max-width:860px){
    .sobre-section{grid-template-columns:1fr;}
}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:'Segoe UI', Arial, sans-serif;
    line-height:1.6;
}

img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none; margin:0; padding:0;}

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

/* ---------- Header ---------- */
.site-header{
    background:#000;
    border-bottom:2px solid var(--orange);
    position:sticky;
    top:0;
    z-index:100;
}
.site-header .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-top:14px;
    padding-bottom:14px;
}
.site-logo{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:22px;
    font-weight:800;
    letter-spacing:1px;
}
.site-logo img{height:48px; width:auto;}
.site-logo .logo-informatica{color:var(--orange);}

.main-nav ul{display:flex; gap:28px;}
.main-nav a{
    font-weight:600;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:.5px;
    padding:8px 0;
    border-bottom:2px solid transparent;
    transition:.2s;
}
.main-nav a:hover, .main-nav .current-menu-item a{
    color:var(--orange);
    border-color:var(--orange);
}

.header-cta{
    background:var(--orange);
    color:#000 !important;
    padding:10px 20px;
    border-radius:30px;
    font-weight:700;
    font-size:14px;
    white-space:nowrap;
}
.header-cta:hover{background:var(--orange-dark);}

.menu-toggle{
    display:none;
    background:none;
    border:2px solid var(--orange);
    color:var(--orange);
    font-size:22px;
    padding:6px 12px;
    border-radius:6px;
    cursor:pointer;
}

/* ---------- Hero (banner estático, foto real da loja, texto só na base) ---------- */
.hero-static{
    position:relative;
    aspect-ratio:1326 / 658;
    max-height:600px;
    min-height:320px;
    width:100%;
    background-size:cover;
    background-position:center top;
    background-repeat:no-repeat;
    background-color:#000;
    display:flex;
    align-items:flex-end;
    border-bottom:2px solid var(--orange);
}
.hero-static::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.72) 58%, rgba(0,0,0,.95) 100%);
}
.hero-static .container{
    position:relative;
    z-index:2;
    display:flex;
    justify-content:center;
    width:100%;
}
.hero-static-content{
    max-width:680px;
    padding:20px 20px 34px;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
}
.hero-eyebrow{
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:13px;
    font-weight:700;
    color:var(--orange);
    margin:0 0 16px;
}
.hero-static-content h1{
    font-size:clamp(30px,4.2vw,48px);
    margin:0 0 16px;
    color:#fff;
    line-height:1.2;
}
.hero-subtitle{
    color:var(--muted);
    font-size:17px;
    margin:0 0 34px;
}
.hero-static-buttons{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:14px;
}

.btn{
    display:inline-block;
    background:var(--orange);
    color:#000;
    font-weight:700;
    padding:14px 30px;
    border-radius:30px;
    border:none;
    cursor:pointer;
    font-size:15px;
    transition:.2s;
}
.btn:hover{background:var(--orange-dark); transform:translateY(-2px);}
.btn-outline{
    background:transparent;
    border:2px solid var(--orange);
    color:var(--orange);
}
.btn-outline:hover{background:var(--orange); color:#000;}

/* ---------- Section titles ---------- */
.section{padding:70px 0;}
.section-alt{background:var(--bg-alt);}
.section-title{
    text-align:center;
    font-size:clamp(24px,3vw,34px);
    margin:0 0 10px;
}
.section-title span{color:var(--orange);}
#contato .section-title{margin-bottom:44px;}
.section-subtitle{
    text-align:center;
    color:var(--muted);
    max-width:640px;
    margin:0 auto 46px;
}

/* ---------- Cards Grid (o que voce procura) ---------- */
.cards-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(240px,1fr));
    gap:26px;
}
.card{
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:14px;
    padding:30px 24px;
    transition:.25s;
    display:flex;
    flex-direction:column;
    height:100%;
}
.card:hover{
    border-color:var(--orange);
    transform:translateY(-6px);
    box-shadow:0 12px 30px rgba(255,122,0,.15);
}
.card .card-icon{font-size:36px; margin-bottom:14px;}
.card h3{margin:0 0 12px; font-size:19px;}
.card ul li{
    color:var(--muted);
    font-size:14px;
    padding:4px 0;
    border-bottom:1px dashed var(--border);
}
.card ul li:last-child{border-bottom:none;}
.card ul{flex:1;}
.card a.card-link{
    display:inline-block;
    margin-top:16px;
    color:var(--orange);
    font-weight:700;
    font-size:14px;
}

/* ---------- Products / Services grid ---------- */
.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(230px,1fr));
    gap:24px;
}
.product-card{
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:12px;
    overflow:hidden;
    text-align:center;
    display:flex;
    flex-direction:column;
    height:100%;
}
.product-card .product-thumb{
    background:#000;
    padding:26px;
    min-height:150px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:48px;
}
.product-card .product-thumb-img{
    padding:0;
    overflow:hidden;
}
.product-card .product-thumb-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.product-card .product-body{
    padding:18px 20px 24px;
    display:flex;
    flex-direction:column;
    flex:1;
}
.product-card h4{margin:0 0 8px;}
.product-card p{color:var(--muted); font-size:13px; margin-bottom:16px; flex:1;}
.product-card .btn{margin-top:auto; align-self:center;}

/* ---------- Destaque de vendas ---------- */
.destaque-section{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}
.destaque-image img{
    border-radius:14px;
    border:1px solid var(--border);
    box-shadow:0 20px 50px rgba(255,122,0,.12);
}
.destaque-text h2{
    font-size:clamp(24px,3vw,32px);
    margin:0 0 18px;
}
.destaque-text p{
    color:var(--muted);
    margin-bottom:16px;
    white-space:pre-line;
}
.destaque-badges{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:20px 0 26px;
}
.destaque-badges span{
    background:rgba(255,122,0,.12);
    border:1px solid var(--orange);
    color:var(--orange);
    padding:6px 14px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
}
@media(max-width:860px){
    .destaque-section{grid-template-columns:1fr;}
}

/* ---------- Google Reviews ---------- */
.google-reviews{padding:50px 0; background:var(--bg);}
.google-reviews-box{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:30px;
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:16px;
    padding:34px 40px;
    text-align:center;
}
.google-reviews-score{display:flex; flex-direction:column; align-items:center; line-height:1;}
.google-reviews-number{font-size:40px; font-weight:800; color:#fff;}
.google-reviews-stars{color:#fbbc04; font-size:18px; letter-spacing:2px; margin-top:6px;}
.google-reviews-text strong{display:block; font-size:16px; margin-bottom:4px;}
.google-reviews-text p{margin:0; color:var(--muted); font-size:14px;}
@media(max-width:600px){
    .google-reviews-box{flex-direction:column; padding:28px 24px;}
}

/* ---------- CTA strip ---------- */
.cta-strip{
    background:linear-gradient(90deg,#141414,#000);
    border-top:2px solid var(--orange);
    border-bottom:2px solid var(--orange);
    text-align:center;
    padding:50px 20px;
}
.cta-strip h2{margin:0 0 10px; font-size:26px;}
.cta-strip p{color:var(--muted); margin-bottom:24px;}

/* ---------- Blog ---------- */
.blog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(300px,1fr));
    gap:28px;
}
.blog-card{
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:14px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    transition:.25s;
}
.blog-card:hover{
    border-color:var(--orange);
    transform:translateY(-6px);
    box-shadow:0 12px 30px rgba(255,122,0,.15);
}
.blog-card-thumb{display:block; aspect-ratio:1200/630; overflow:hidden; background:#000;}
.blog-card-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.blog-card-thumb-fallback{
    width:100%; height:100%;
    display:flex; align-items:center; justify-content:center;
    color:var(--orange);
    font-weight:800;
    font-size:22px;
    letter-spacing:1px;
    background:#000;
}
.blog-card-body{padding:22px 22px 26px; display:flex; flex-direction:column; flex:1;}
.blog-card-cat{
    display:inline-block;
    align-self:flex-start;
    background:rgba(255,122,0,.15);
    border:1px solid var(--orange);
    color:var(--orange);
    padding:4px 12px;
    border-radius:16px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    margin-bottom:12px;
}
.blog-card-body h2{font-size:19px; margin:0 0 8px; line-height:1.35;}
.blog-card-body h2 a:hover{color:var(--orange);}
.blog-card-date{color:var(--muted); font-size:13px; margin:0 0 10px;}
.blog-card-excerpt{color:var(--muted); font-size:14px; margin:0 0 16px; flex:1;}
.blog-home-more{text-align:center; margin-top:40px;}
.blog-pagination{margin-top:50px; display:flex; justify-content:center; gap:10px;}
.blog-pagination .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:40px;
    height:40px;
    padding:0 12px;
    border:1px solid var(--border);
    border-radius:8px;
    color:var(--text);
    font-size:14px;
}
.blog-pagination .page-numbers.current{background:var(--orange); border-color:var(--orange); color:#000; font-weight:700;}
.blog-pagination .page-numbers:hover:not(.current){border-color:var(--orange); color:var(--orange);}

.single-cover{width:100%; max-height:520px; overflow:hidden; background:#000;}
.single-cover img{width:100%; height:100%; object-fit:cover; display:block;}
.single-post{padding-top:44px;}
.single-meta{color:var(--muted); font-size:14px; margin:6px 0 30px;}
.single-cta{
    margin-top:50px;
    padding:30px;
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:14px;
    text-align:center;
}
.single-cta p{margin:0 0 18px; color:var(--muted);}

/* ---------- Content page (Gutenberg editable) ---------- */
.page-content{
    max-width:900px;
    margin:0 auto;
    padding:70px 20px;
}
.page-content h1{
    font-size:34px;
    margin-bottom:10px;
    border-bottom:2px solid var(--orange);
    display:inline-block;
    padding-bottom:8px;
}
.page-content img{border-radius:10px;}
.page-content a{color:var(--orange); text-decoration:underline;}

/* ---------- Contact ---------- */
.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
}
.contact-info .info-item{margin-bottom:22px;}
.contact-info .info-item strong{color:var(--orange); display:block; margin-bottom:4px;}
.contact-form input, .contact-form textarea{
    width:100%;
    background:var(--bg-card);
    border:1px solid var(--border);
    color:var(--text);
    padding:13px 16px;
    border-radius:8px;
    margin-bottom:16px;
    font-family:inherit;
    font-size:14px;
}
.contact-form input:focus, .contact-form textarea:focus{
    outline:none;
    border-color:var(--orange);
}
.form-msg{
    padding:14px 18px;
    border-radius:8px;
    margin-bottom:20px;
    font-size:14px;
}
.form-msg.success{background:rgba(0,180,90,.15); border:1px solid #00b45a; color:#7cffc0;}
.form-msg.error{background:rgba(255,60,60,.15); border:1px solid #ff3c3c; color:#ffb3b3;}

/* ---------- Footer ---------- */
.site-footer{
    background:#000;
    border-top:2px solid var(--orange);
    padding:60px 0 24px;
}
.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px;
    margin-bottom:40px;
}
.footer-grid h4{color:var(--orange); margin-bottom:16px; font-size:15px; text-transform:uppercase;}
.footer-grid p, .footer-grid li{color:var(--muted); font-size:14px; margin-bottom:8px;}
.footer-grid a:hover{color:var(--orange);}
.footer-social a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px; height:38px;
    border:1px solid var(--orange);
    border-radius:50%;
    margin-right:10px;
    font-size:16px;
}
.footer-bottom{
    border-top:1px solid var(--border);
    padding-top:20px;
    text-align:center;
    font-size:13px;
    color:var(--muted);
}

/* ---------- WhatsApp float button ---------- */
.whatsapp-float{
    position:fixed;
    bottom:24px;
    right:24px;
    background:#25D366;
    width:60px;
    height:60px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    color:#fff;
    box-shadow:0 6px 20px rgba(0,0,0,.4);
    z-index:200;
}

/* ---------- Responsive ---------- */
@media(max-width:860px){
    .contact-grid{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr;}
}
@media(max-width:780px){
    .main-nav{
        position:absolute;
        top:100%;
        left:0;
        right:0;
        background:#000;
        border-top:1px solid var(--border);
        display:none;
        flex-direction:column;
        max-height:80vh;
        overflow-y:auto;
    }
    .main-nav.open{display:flex;}
    .main-nav ul{flex-direction:column; padding:10px 20px;}
    .menu-toggle{display:block;}
    .header-cta{display:none;}

    /* Hero: em telas pequenas o texto precisa de mais espaço do que a proporção da foto permite */
    .hero-static{
        aspect-ratio:auto;
        max-height:none;
        min-height:380px;
        height:auto;
    }
    .hero-static-content{padding:24px 16px 28px;}
    .hero-static-content h1{font-size:26px;}
    .hero-eyebrow{font-size:12px; margin-bottom:10px;}
    .hero-subtitle{font-size:14px; margin-bottom:20px;}
    .hero-static-buttons{flex-direction:column; width:100%; gap:10px;}
    .hero-static-buttons .btn{width:100%;}

    .section{padding:44px 0;}
    .cta-strip{padding:36px 20px;}
}

@media(max-width:420px){
    .whatsapp-float{width:52px; height:52px; font-size:24px; bottom:16px; right:16px;}
}
