/*
Theme Name: Union Engenharia
Theme URI: https://www.unionengenharia.com
Author: Matheus Ortiz
Author URI: https://ortiz.ia.br
Description: Tema minimalista para escritório de arquitetura e engenharia Union
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: union-engenharia
*/

/* Reset e Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #000000;
    --foreground: #ffffff;
    --muted: #0a0a0a;
    --muted-foreground: #999999;
    --border: #262626;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
.text-architectural {
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-minimal {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-logo img {
    height: 3rem; /* Aumentado de 2rem para melhor visibilidade */
    width: auto;
    display: block;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--foreground);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.main-navigation a {
    text-decoration: none;
    color: var(--muted-foreground);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    transition: var(--transition-fast);
}

.main-navigation a:hover {
    color: var(--foreground);
}

/* Mobile Navigation Elements */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--foreground);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--foreground);
    left: 0;
    transition: var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background);
    z-index: 40;
    padding-top: 6rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-navigation.active {
    transform: translateY(0);
}

.mobile-nav-menu {
    list-style: none;
    padding-left: 0; /* Remove o recuo padrão da lista */
    text-align: center;
}

.mobile-nav-menu li {
    margin-bottom: 2rem;
    list-style-type: none; /* Garante que nenhum marcador seja exibido */
}

.mobile-nav-menu a {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.mobile-nav-menu a:hover {
    color: var(--muted-foreground);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hamburger Animation when active */
    .mobile-menu-toggle.active .hamburger {
        background-color: transparent;
    }
    
    .mobile-menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .mobile-menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.1));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 3.75rem);
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 0.05em;
    max-width: 42rem;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem 5rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.service-item {
    display: flex;
    gap: 1.5rem;
}

.service-number {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    font-weight: 500;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.service-item:hover .service-title {
    color: var(--muted-foreground);
}

.service-description {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-image {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-fast);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--foreground);
    transition: var(--transition-fast);
}

.contact-value:hover {
    color: var(--muted-foreground);
}

/* Footer */
.site-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

.footer-copyright {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--foreground);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted-foreground);
    transition: var(--transition-smooth);
}

.btn:hover {
    border-color: var(--foreground);
    color: var(--foreground);
}

.btn::after {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--muted-foreground);
    transition: var(--transition-smooth);
}

.btn:hover::after {
    width: 3rem;
    background: var(--foreground);
}

.btn-primary {
    background: var(--foreground);
    color: var(--background);
    border-color: var(--foreground);
}

.btn-primary:hover {
    background: var(--muted-foreground);
    border-color: var(--muted-foreground);
}

.btn-primary::after {
    background: var(--background);
}

.btn-primary:hover::after {
    background: var(--background);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    background: var(--background);
    font-size: 1rem;
    transition: var(--transition-fast);
}

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

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    text-decoration: none;
    color: inherit;
}

.blog-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    margin-bottom: 1.5rem;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-image {
    transform: scale(1.02);
}

.blog-meta {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
}

.blog-card:hover .blog-title {
    color: var(--muted-foreground);
}

.blog-excerpt {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* Animations */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-delayed {
    animation: reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

/* Light Mode Support (Optional via class) */
body.light-mode {
    --background: #ffffff;
    --foreground: #000000;
    --muted: #f5f5f5;
    --muted-foreground: #333333;
    --border: #e5e5e5;
}

body.light-mode .site-header {
    background: rgba(255, 255, 255, 0.8);
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer Credit */
.footer-credit {
    font-size: 0.625rem;
    color: var(--muted-foreground);
    opacity: 0.3;
}

.footer-credit a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-credit a:hover {
    opacity: 0.7;
}
