:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f7f2; /* Soft Beige accent */
    --text-primary: #111111;
    --text-secondary: #4a4a4a;
    --accent: #d4cfc1; /* Muted architectural beige */
    --black: #000000;
    --white: #ffffff;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1320px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.section-tag {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 40px 0;
    transition: var(--transition-smooth);
    color: var(--white); /* Start white for hero */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-primary);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.logo span {
    font-weight: 300;
    opacity: 0.6;
    margin-left: 4px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

.btn-minimal {
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s infinite alternate linear;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    line-height: 1.05;
}

.reveal-text-sub {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--black);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.7;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 1px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    width: 2px;
    height: 6px;
    background: var(--white);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

/* --- Trust Section --- */
.trust-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    text-align: center;
}

.trust-content p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

/* --- Portfolio --- */
.portfolio {
    padding: 140px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px; /* Base row height for more precision */
    grid-auto-flow: dense;
    gap: 30px;
    margin-top: 60px;
}

.portfolio-item {
    grid-column: span 12;
    grid-row: span 2; /* Default 400px height */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item.tall {
    grid-row: span 4; /* 800px height */
}

.portfolio-item.wide {
    grid-column: span 12;
}

@media (min-width: 1024px) {
    .portfolio-item { grid-column: span 3; }
    .portfolio-item.tall { grid-row: span 4; }
    .portfolio-item.wide { grid-column: span 12; grid-row: span 3; }
    
    /* Restaurando o Mosaico Artístico */
    .portfolio-item:nth-child(1) { grid-column: span 6; grid-row: span 4; }
    .portfolio-item:nth-child(2) { grid-column: span 6; grid-row: span 2; }
}

.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-wrapper {
    background-color: #000;
    overflow: hidden;
}

.portfolio-img-wrapper {
    width: 100%;
    height: 100%;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: flex-end;
    padding: 40px;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.portfolio-info {
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* --- Services --- */
.services {
    padding: 140px 0;
    background-color: #111;
    color: var(--white);
}

.services .section-tag {
    color: var(--accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Força 4 colunas em linha */
    gap: 30px;
    margin-top: 80px;
}

.service-card {
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
}

.service-card:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.1);
}

.service-icon {
    margin-bottom: 2rem;
    color: var(--accent);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.service-card p {
    font-size: 0.95rem;
    opacity: 0.6;
    line-height: 1.8;
}

/* --- About --- */
.about {
    padding: 140px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 80px;
}

.about-text {
    grid-column: span 6;
}

.about-visual {
    grid-column: span 6;
}

.about-p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* --- Process --- */
.process {
    padding: 140px 0;
    background-color: var(--bg-secondary);
}

.centered {
    text-align: center;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    gap: 30px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    position: relative;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.step-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1rem;
    line-height: 1.4;
}

/* --- Contact --- */
.contact {
    padding: 140px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 80px;
}

.contact-info {
    grid-column: span 5;
}

.contact-form-wrapper {
    grid-column: span 7;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.email-link {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--text-primary);
    width: fit-content;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-links a {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    opacity: 0.6;
}

.social-links a:hover {
    opacity: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.6;
}

input, textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

input:focus, textarea:focus {
    border-bottom-color: var(--text-primary);
}

.btn-primary.full {
    width: 100%;
    margin-top: 20px;
    background: var(--black);
    color: var(--white);
}

.btn-primary.full:hover {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

/* --- Footer --- */
.footer {
    padding: 100px 0 60px;
    background-color: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
}

.footer-logo span { font-weight: 300; opacity: 0.5; }

.footer-social {
    display: flex;
    gap: 25px;
}

.footer-social a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    opacity: 0.5;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-tagline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    opacity: 0.5;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 40px;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--white);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2001;
}

.lightbox-close:hover {
    opacity: 0.6;
}

.lightbox-caption {
    margin-top: 30px;
    text-align: center;
    color: var(--white);
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 1px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* --- Responsiveness --- */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text, .about-visual, .contact-info, .contact-form-wrapper {
        grid-column: span 1;
    }
    
    .form-row { grid-template-columns: 1fr; }
    
    .portfolio-item.tall, .portfolio-item {
        grid-column: span 12;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
