/* --- RESET GLOBAL & PREVENÇÃO DE SCROLL HORIZONTAL --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #111;
    background-color: #fff;
}

/* --- 1. HERO FULLSCREEN --- */
.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), 
                url('https://www.autaarquitetura.com.br/assets/uploads/capa-home.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #e0e0e0;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.8rem;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* --- 2. TEXTO DE INTRODUÇÃO SOBRE A AUTÁ --- */
.studio-intro-section {
    padding: 100px 20px 80px;
    background-color: #ffffff;
}

.studio-intro-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.section-subtitle {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 15px;
}

.studio-intro-container h2 {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.4;
    color: #111;
    margin-bottom: 20px;
}

.studio-intro-container p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn-line-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #111;
    color: #111;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-line-link:hover {
    background-color: #111;
    color: #fff;
}

/* --- 3. CONCEITO DE CRIAÇÃO (TEXTO ESQUERDA / IMAGEM DIREITA) --- */
.feature-section {
    padding: 60px 20px 100px;
    background-color: #ffffff;
}

.feature-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-text h3 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #111;
}

.feature-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    font-weight: 300;
}

.feature-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* --- 4. GALERIA (3 IMAGENS LADO A LADO) --- */
.featured-projects-section {
    padding: 60px 20px 100px;
    background-color: #ffffff;
}

.featured-projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.transition-lead {
    font-size: 1.1rem;
    color: #555;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
}

.featured-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #111;
    text-align: left;
    margin-bottom: 25px;
    font-weight: 400;
}

.projects-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card-compact a {
    text-decoration: none;
    color: inherit;
    text-align: left;
    display: block;
}

.project-card-compact .project-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.project-card-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-compact:hover img {
    transform: scale(1.03);
}

.project-info-compact h4 {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    margin: 12px 0 4px;
    letter-spacing: 0.5px;
}

.project-info-compact p {
    font-size: 0.75rem;
    color: #777;
    margin: 0;
}

/* --- 5. CHAMADA FINAL DE CONTATO --- */
.cta-section {
    padding: 80px 20px 100px;
    background-color: #ffffff;
    text-align: center;
}

.cta-container h3 {
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 300;
    color: #222;
    margin-bottom: 10px;
}

.cta-container p {
    font-size: 0.95rem;
    color: #666;
}

.cta-link {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.cta-link:hover {
    color: #666;
}

/* --- 6. RODAPÉ CENTRALIZADO --- */
footer {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #888;
}

footer p {
    margin: 0;
    text-align: center;
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 850px) {
    .feature-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .projects-grid-3col {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .project-card-compact .project-image-wrapper {
        height: 280px;
    }
    .feature-image img {
        height: 300px;
    }
}

/* --- BARRA DE TÍTULO & MENU --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 9999;
    background-color: rgba(211, 211, 211, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    box-sizing: border-box;
    transition: height 0.3s ease, background-color 0.3s ease;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* TÍTULO / LOGO DA MARCA */
.site-branding a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111111;
    text-decoration: none;
    line-height: 1;
    display: inline-block;
    transition: font-size 0.3s ease, transform 0.3s ease;
}

/* MENU DE NAVEGAÇÃO */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #111111;
    text-decoration: none;
    line-height: 1;
    display: inline-block;
    transition: font-size 0.3s ease, transform 0.3s ease;
}

.site-branding a:hover,
.main-nav a:hover {
    opacity: 0.6;
}

/* --- ESTADO ENCOLHIDO AO ROLAR A PÁGINA --- */
.site-header.scrolled {
    height: 40px;
}

.site-header.scrolled .site-branding a {
    font-size: 0.7rem;
}

.site-header.scrolled .main-nav a {
    font-size: 0.65rem;
}

/* --- COMPENSAÇÃO E LAYOUT PARA PÁGINAS INTERNAS --- */
.internal-page-wrapper {
    padding-top: 240px;
    min-height: calc(100vh - 120px);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* --- PÁGINA ABOUT --- */
.about-hero {
    margin-bottom: 60px;
}

.about-hero h2 {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.3;
    color: #111;
    margin-top: 10px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 100px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    font-weight: 300;
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    display: block;
}

/* --- PÁGINA CONTACT --- */
.contact-section {
    margin-bottom: 100px;
}

.contact-header {
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #111;
    margin: 10px 0;
}

.contact-header p {
    font-size: 1rem;
    color: #666;
    font-weight: 300;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 400;
}

.info-block p, .info-block a {
    font-size: 0.95rem;
    color: #111;
    text-decoration: none;
    font-weight: 300;
}

.info-block a:hover {
    text-decoration: underline;
}

/* FORMULÁRIO MINIMALISTA */
.minimal-form .form-group {
    margin-bottom: 25px;
}

.minimal-form label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    margin-bottom: 8px;
}

.minimal-form input,
.minimal-form textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: #111;
    outline: none;
    transition: border-color 0.3s ease;
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    border-bottom-color: #111;
}

/* --- PÁGINA WORK / PROJETOS --- */
.work-header {
    margin-bottom: 60px;
}

.work-header h2 {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.3;
    color: #111;
    margin-top: 10px;
    letter-spacing: -0.5px;
}

.work-grid-section {
    margin-bottom: 120px;
}

.projects-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card .project-image-wrapper {
    width: 100%;
    height: 480px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.03);
}

.project-info {
    margin-top: 18px;
}

.project-info h3 {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 6px 0;
    color: #111;
}

.project-info p {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
    font-weight: 300;
}

/* --- PAINEL ADMINISTRATIVO Minimalista --- */
.admin-container {
    max-width: 800px;
    margin: 40px auto 80px auto;
}

.admin-card {
    background: #fff;
    padding: 40px;
    border: 1px solid #eaeaea;
}

.admin-title {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #111;
    letter-spacing: -0.5px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #444;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #111;
    background-color: #fff;
}

.form-group input[type="file"] {
    padding: 10px 0;
    font-size: 0.85rem;
}

.form-help {
    font-size: 0.75rem;
    color: #777;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-primary {
    padding: 12px 28px;
    background-color: #111;
    color: #fff;
    border: 1px solid #111;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-secondary {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    text-decoration: none;
}

.btn-secondary:hover {
    color: #111;
}

/* --- DASHBOARD ADMINISTRATIVA --- */
.admin-dashboard-container {
    max-width: 1100px;
    margin: 0 auto 100px auto;
}

.admin-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.admin-actions-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    padding: 16px 20px;
    border-bottom: 1px solid #111;
    font-weight: 600;
}

.admin-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.admin-table tbody tr:hover {
    background-color: #fafafa;
}

.col-id {
    color: #999;
    font-size: 0.8rem;
    width: 60px;
}

.col-title strong {
    color: #111;
    font-weight: 500;
}

.text-right {
    text-align: right;
}

.btn-delete {
    color: #d9534f;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.btn-delete:hover {
    opacity: 0.6;
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #888;
}

/* ==========================================================================
   REFINAMENTO VISUAL CLEAN - DETALHES DO PROJETO (FUNDO BRANCO PURO)
   ========================================================================== */

main.project-detail-container {
    padding-top: 140px !important;
    max-width: 1140px;
    margin: 0 auto 80px auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Cabeçalho refinado */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 24px;
    margin-bottom: 35px;
}

.section-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    display: block;
    margin-bottom: 4px;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: -0.5px;
    color: #111;
}

.project-meta-grid {
    display: flex;
    gap: 40px;
}

.meta-item span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    display: block;
}

.meta-item p {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 3px 0 0 0;
    color: #111;
}

/* Caixa de Descrição Clean (Sem Fundo) */
.project-description-box {
    background-color: transparent;
    padding: 0 0 30px 0;
    border-left: 2px solid #111;
    padding-left: 20px;
    margin-bottom: 50px;
}

.project-description-box p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

/* Estrutura da Galeria Rich */
.project-gallery-rich {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 60px;
}

.figure-full {
    margin: 0;
}

.figure-full .image-frame img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    display: block;
}

/* Legenda da Capa Clean */
.image-caption {
    padding: 12px 0;
    background-color: transparent;
    border-top: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.image-caption p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Linhas de Fotos Adicionais com Texto Lateral (Clean) */
.gallery-rows-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gallery-row-item {
    display: flex;
    align-items: center;
    gap: 45px;
    background-color: transparent;
    border: none;
    padding: 0;
}

.gallery-row-item:hover {
    border-color: transparent;
}

.row-image-wrapper {
    flex: 0 0 55%;
    max-width: 55%;
    overflow: hidden;
    background-color: transparent;
}

.row-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.row-content-wrapper {
    flex: 1;
}

.caption-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 600;
    color: #999;
    margin-bottom: 12px;
    display: block;
}

.row-text p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

/* Navegação / Botão de Voltar */
.project-footer-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-line-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #111;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-line-link:hover {
    opacity: 0.6;
}

/* --- MEDIA QUERIES PARA RESPONSIVIDADE MOBILE --- */
@media (max-width: 868px) {
    .internal-page-wrapper {
        padding-top: 90px;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid-2col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-card .project-image-wrapper {
        height: 320px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .gallery-row-item {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    .row-image-wrapper {
        flex: 100%;
        max-width: 100%;
        width: 100%;
    }

    .row-image-wrapper img {
        height: auto;
        max-height: 280px;
    }

    .form-row,
    .admin-header-bar {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}