/* ========================================
   Base Styles & Variables (Comum a todas as páginas)
   ======================================== */
:root {
    --bg: #1a1a1a;
    --muted: #aaa;
    --text: #f8f9fa;
    --accent: #4f8cee;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    padding-top: 70px; /* Compensa navbar fixa */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Navbar (Comum a todas as páginas)
   ======================================== */
.navbar {
    background-color: rgba(20, 20, 20, 0.8) !important;
    backdrop-filter: blur(10px);
    padding-top: 8px;
    padding-bottom: 8px;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
    color: #ccc !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] {
    color: #fff !important;
}

.navbar-nav .social-icon-link {
    color: #ccc;
    padding: 0.5rem;
    display: inline-block;
    transition: color 0.25s;
}

.navbar-nav .social-icon-link:hover {
    color: #fff;
}

.navbar-nav .social-icon-link i {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Ajustes responsivos da Navbar */
@media (min-width: 992px) {
    .navbar-nav { align-items: center; }
    .navbar-nav .nav-item.social-item-start { margin-left: 15px; }
}
@media (max-width: 991.98px) {
    .navbar-nav .nav-item.social-item-start,
    .navbar-nav .nav-item.social-item { margin-top: 10px; margin-left: 0; }
}

/* ========================================
   Portfolio Grid Geral & Item (Usado em index.html e work.html)
   ======================================== */
.portfolio-grid { /* Estilo geral do container do grid */
    max-width: 1600px;
    margin: 18px auto 30px auto;
    padding: 0 0.5rem;
}
.portfolio-item { /* Estilo de cada item individual */
    position: relative;
    overflow: hidden;
    padding: 6px; /* Padding padrão entre itens - ESSENCIAL PARA O ESPAÇAMENTO */
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.portfolio-item img {
    width: 100%; height: auto; display: block;
    transition: transform 0.45s ease;
    aspect-ratio: 16 / 9; object-fit: cover; cursor: pointer;
}
.caption-overlay {
    position: absolute; inset: 0; display: flex; justify-content: center;
    align-items: center; text-align: center;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0; transition: opacity 0.35s ease;
}
.caption-text h3 {
    font-weight: 700; margin: 0; transform: scale(0.95);
    transition: transform 0.35s ease;
    color: #fff; font-size: 1.05rem;
}
.portfolio-item:hover .caption-overlay { opacity: 1; }
.portfolio-item:hover .caption-text h3 { transform: scale(1); }
.portfolio-item:hover img { transform: scale(1.03); }

/* --- REGRAS REMOVIDAS DAQUI --- */
/* As regras '.portfolio-grid .col-md-6 { padding: 0; }' e 
   '.portfolio-grid .col-md-6 .portfolio-item { padding: 6px; }'
   foram removidas para evitar conflitos com o grid de work.html */


/* ========================================
   Seção Clientes (Splide Carousel - Comum)
   ======================================== */
.clientes-section { padding: 60px 0; background-color: var(--bg); }
.client-title-wrapper { text-align: center; margin-bottom: 40px; }
.client-title-wrapper h2 { margin-bottom: 1rem; font-weight: 300; }
.client-title-wrapper p { color: var(--muted); margin: 0; line-height: 1.5; font-size: 1.1rem; font-weight: 300; }
.splide__slide { display: flex; align-items: center; justify-content: center; min-height: 80px; }
.splide__slide img { max-height: 35px; width: auto; opacity: 0.8; transition: opacity 0.3s ease; object-fit: contain; }
.splide__slide:hover img { opacity: 1; }
.splide__arrows, .splide__pagination { display: none; }

/* ========================================
   Rodapé (Comum a todas as páginas)
   ======================================== */
.site-footer {
    padding: 3rem 0; background-color: #111; text-align: center;
    color: #777; font-size: 0.9rem; margin-top: 40px;
}
.site-footer a { color: #aaa; text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin-bottom: 0.5rem; }

/* ========================================
   Botão Voltar ao Topo (Comum a index, work, about)
   ======================================== */
#backToTopBtn {
    position: fixed; bottom: 20px; right: 20px; z-index: 1000;
    display: none; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background-color: var(--accent); color: white; border: none; border-radius: 50%;
    width: 45px; height: 45px; font-size: 1.2rem; line-height: 45px;
    text-align: center; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
#backToTopBtn.show { display: block; opacity: 0.8; visibility: visible; }
#backToTopBtn:hover { opacity: 1; background-color: #3a7bd5; }

/* ========================================
   Classes Utilitárias e Gerais (Comum)
   ======================================== */
.section-padding { padding: 4rem 0; }
.section-bg-darker { background-color: #222; }
.text-highlight { color: var(--accent); }

/* ========================================
   Estilos Específicos de PÁGINAS (Colocados mais abaixo para maior especificidade)
   ======================================== */

/* --- Estilos específicos de index.html (Hero) --- */
.hero-section { height: 72vh; min-height: 420px; display:flex; align-items:center; justify-content:center; position:relative; color:var(--text); background-image: url('BANNERS/HOME/03.jpg'); background-size: cover; background-position: center; }
.hero-overlay{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.6)); }
.hero-inner{ position:relative; z-index:2; max-width:1100px; text-align:center; padding: 2rem; }
.hero-inner h1{ font-size: clamp(1.6rem, 3.6vw, 2.6rem); margin-bottom: 0.6rem; font-weight:700; letter-spacing:0.6px; }
.hero-inner p{ color:var(--muted); font-size:1.05rem; margin-bottom:1.25rem; line-height:1.6; max-width:880px; margin-left:auto; margin-right:auto; }
.btn-cta { border-radius: 6px; padding: 0.6rem 1rem; font-weight:600; }
.btn-outline-light.btn-cta:hover, .btn-outline-light.btn-cta:focus { background-color: var(--accent); border-color: var(--accent); color: #ffffff; transition: 0.2s ease-in-out; }
@media(max-width:991.98px){ .hero-inner p{ font-size:0.98rem; } }


/* --- Estilos específicos de work.html (Hero, Filtro, Grid Items Visibility) --- */
.works-hero { height: 28vh; min-height: 120px; display:flex; align-items:center; background-image: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.6)); }
.works-hero .inner { max-width:1200px; margin:0 auto; padding:1.5rem; text-align:center; }
.works-hero h1 { margin:0; font-size:clamp(1.25rem,3.2vw,1.8rem); font-weight:700; }
.works-hero p { color:var(--muted); margin-top:0.5rem; font-size:0.95rem; }

.filter-controls { text-align:center; margin:28px auto 18px auto; max-width:1200px; padding:0 1rem; }
.filter-btn { background:none; border:1px solid #333; color:#ddd; margin:6px; padding:8px 14px; border-radius:6px; text-transform:uppercase; font-size:0.82rem; letter-spacing:0.6px; transition:all 0.25s ease; cursor:pointer; }
.filter-btn.active, .filter-btn:hover { background:var(--accent); border-color:var(--accent); color:#fff; }

.portfolio-item.hidden { opacity: 0; transform: translateY(8px) scale(0.99); pointer-events: none; }
.portfolio-item.visible { opacity: 1; transform: translateY(0) scale(1); }
@media(max-width:991.98px){ .filter-controls { margin-top:12px; } }


/* --- Estilos específicos de about.html --- */
.about-hero h1 { font-size: 3rem; font-weight: 300; letter-spacing: 1px; margin-bottom: 1rem;}
.about-hero .lead { color: #aaa; font-size: 1.1rem; }
.about-img-grid img { width: 100%; height: 150px; object-fit: cover; margin-bottom: 1rem; border-radius: 4px;}
.bio-section img { width: 200px; height: 200px; object-fit: cover; border: 3px solid #444; border-radius: 50%; }
.bio-section h3 { margin-bottom: 1rem; }
.bio-section .bio-subtitle { margin-bottom: 1rem; }
.bio-section p { color: #bbb; line-height: 1.7; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section .btn-warning { background-color: var(--accent); border-color: var(--accent); color: #fff; }
.cta-section .btn-warning:hover { background-color: #3a7bd5; border-color: #3a7bd5; color: #fff; }


/* --- Estilos específicos de contact.html --- */
.contact-info-section h2 { margin-bottom: 3rem; font-weight: 300; text-align: center;}
.contact-info-item { text-align: center; margin-bottom: 2rem;}
.contact-info-item .icon-circle { width: 60px; height: 60px; background-color: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem auto; color: var(--accent); font-size: 1.5rem; }
.contact-info-item h5 { color: #fff; margin-bottom: 0.5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;}
.contact-info-item p, .contact-info-item a { color: #aaa; text-decoration: none; font-size: 0.95rem;}
.contact-info-item a:hover { color: #fff; }
.contact-form-section h2 { margin-bottom: 1rem; font-weight: 300; text-align: center;}
.contact-form-section .lead { color: #aaa; text-align: center; margin-bottom: 3rem;}
.form-control-underline { background-color: transparent; border: none; border-bottom: 1px solid #555; border-radius: 0; color: #fff; padding: 0.75rem 0; box-shadow: none; }
.form-control-underline::placeholder { color: #777; opacity: 1; }
.form-control-underline:focus { background-color: transparent; border-color: var(--accent); color: #fff; box-shadow: none; }
.form-label { display: none; }
.btn-submit { background-color: var(--accent); border-color: var(--accent); color: #fff; padding: 0.75rem 2rem; text-transform: uppercase; font-weight: 500; letter-spacing: 1px; transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease; }
.btn-submit:hover { background-color: #3a7bd5; border-color: #3a7bd5; color: #fff; }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }
#form-status { margin-top: 1.5rem; text-align: center; }
.status-success { color: #198754; font-weight: 500; }
.status-error { color: #dc3545; font-weight: 500; }