/* RESET & VARIABLES */
:root {
    --bg-color: #f4f4f0;
    /* Warm Stone */
    --text-color: #1c1917;
    /* Charcoal */
    --accent-color: #9a3412;
    /* Terracotta */
    --white: #ffffff;
    --gray-light: #e5e5e5;

    --font-display: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;

    --container-width: 1400px;
    --spacing-section: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight {
    font-style: italic;
    font-family: var(--font-display);
    color: var(--accent-color);
}

/* LOADER */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

.loader-line {
    width: 0;
    height: 1px;
    background: var(--white);
    margin-bottom: 1rem;
    transition: width 0.5s;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    opacity: 0;
}

/* CUSTOM CURSOR */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
    display: none;
    /* Só mostra em desktop via JS */
}

@media (min-width: 1024px) {
    .cursor {
        display: block;
    }
}

/* =========================================
   NEW HEADER & NAVIGATION
   ========================================= */

/* Header Container */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    /* Espaçamento confortável */
    max-width: 1600px;
    margin: 0 auto;
}

/* Brand */
.header-brand {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.1;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.15em;
}

.header-brand span:last-child {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Desktop Nav */
.nav-desktop {
    display: flex;
    gap: 3rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-desktop a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-desktop a:hover {
    opacity: 1;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s;
}

.nav-desktop a:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-budget-header {
    color: var(--white);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.7rem 1.5rem;
    /* Botão menor */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.btn-budget-header:hover {
    background: var(--white);
    color: var(--text-color);
    border-color: var(--white);
}

/* Hamburger Button */
.btn-hamburger {
    display: none;
    /* Mobile only */
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.btn-hamburger span {
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--white);
    transition: all 0.3s;
}

/* SIDEBAR MENU (Mobile) */
.mob-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 100%;
    max-width: 400px;
    /* Sidebar width limited */
    height: 100vh;
    background: #111;
    z-index: 2000;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mob-sidebar.active {
    right: 0;
}

.btn-close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.mob-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mob-links a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    transition: 0.3s;
}

.mob-links a:hover {
    opacity: 1;
    transform: translateX(10px);
}

.btn-budget-mobile {
    display: inline-block;
    color: #111;
    background: var(--white);
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
    /* Limite de largura para não estourar */
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }

    .btn-hamburger {
        display: flex;
    }

    .btn-budget-header {
        display: none;
        /* Opcional: esconder o botão do header no mobile para limpar */
    }
}

.mobile-menu a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu a:nth-child(4) {
    transition-delay: 0.4s;
}

/* HERO SLIDER */
.hero-slider {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 10s ease;
}

.slide.active .slide-img {
    transform: scale(1);
}

.slide-content {
    position: absolute;
    bottom: 15%;
    left: 5%;
    color: var(--white);
    z-index: 2;
}

.slide-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 1rem;
}

.slide-title {
    font-size: 5vw;
    margin-bottom: 2rem;
}

.slide-link {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-display);
    border-bottom: 1px solid var(--white);
    padding-bottom: 5px;
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    bottom: 5%;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--white);
    z-index: 2;
}

.slider-controls button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: inherit;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-controls button:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* INTRO */
.intro {
    padding: var(--spacing-section) 0;
    text-align: center;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.intro-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.signature-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.architect-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.architect-role {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* PORTFOLIO MASONRY */
.portfolio {
    padding-bottom: var(--spacing-section);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
}

.view-all {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 2rem;
}

.grid-item {
    position: relative;
    overflow: hidden;
}

.grid-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.grid-item.tall {
    grid-row: span 2;
}

.grid-item.wide {
    grid-column: span 2;
}

.project-card {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.card-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover .card-img img {
    transform: scale(1.05);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-card:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

/* PHILOSOPHY */
.philosophy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

.philosophy-content {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--text-color);
    color: var(--white);
}

.philosophy-content .label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.philosophy-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.philosophy-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 500px;
    margin-bottom: 4rem;
}

.stats-minimal {
    display: flex;
    gap: 4rem;
}

.stats-minimal .stat {
    display: flex;
    flex-direction: column;
}

.stats-minimal .num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent-color);
}

.stats-minimal .txt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.philosophy-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SERVICES */
.services {
    padding: var(--spacing-section) 0;
}

.service-list {
    border-top: 1px solid #ccc;
}

.service-item {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr 2fr 0.5fr;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.service-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.service-item .num {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #999;
}

.service-item h3 {
    font-size: 1.5rem;
}

.service-item p {
    color: #666;
}

.service-item .arrow {
    font-size: 1.5rem;
    justify-self: end;
    transition: transform 0.3s;
}

.service-item:hover .arrow {
    transform: translateX(10px);
}

/* CONTACT */
.contact-editorial {
    padding: var(--spacing-section) 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-text h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.email-link {
    display: block;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 5px;
    margin: 2rem 0 4rem;
    width: fit-content;
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.minimal-form input,
.minimal-form textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

.minimal-form button {
    align-self: flex-start;
    background: var(--text-color);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}

.minimal-form button:hover {
    background: var(--accent-color);
}

/* FOOTER */
footer {
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-row a {
    text-decoration: none;
    color: inherit;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    :root {
        --spacing-section: 4rem;
    }

    .nav-center {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .nav-editorial {
        padding: 1.5rem 2rem;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }

    .grid-item.large,
    .grid-item.wide {
        grid-column: span 1;
    }

    .philosophy {
        grid-template-columns: 1fr;
        height: auto;
    }

    .philosophy-content {
        padding: 3rem 2rem;
    }

    .philosophy-content h2 {
        font-size: 2.5rem;
    }

    .philosophy-img {
        height: 500px;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        padding: 2rem 0;
    }

    .service-item .arrow,
    .service-item .num {
        display: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-text h2 {
        font-size: 2.5rem;
    }

    .slide-title {
        font-size: 3rem;
    }

    .intro-text {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 3rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav-editorial {
        padding: 1rem 1.5rem;
    }

    .brand {
        font-size: 1rem;
    }

    .slide-content {
        left: 1.5rem;
        bottom: 10%;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-subtitle {
        font-size: 0.75rem;
    }

    .slider-controls {
        bottom: 2%;
        right: 1.5rem;
        gap: 1rem;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
    }

    .intro-text {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .masonry-grid {
        grid-auto-rows: 300px;
        gap: 1rem;
    }

    .philosophy-content {
        padding: 2rem 1.5rem;
    }

    .philosophy-content h2 {
        font-size: 2rem;
    }

    .philosophy-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .stats-minimal {
        gap: 2rem;
    }

    .stats-minimal .num {
        font-size: 2rem;
    }

    .philosophy-img {
        height: 300px;
    }

    .service-item {
        padding: 1.5rem 0;
    }

    .service-item h3 {
        font-size: 1.2rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }

    .contact-text h2 {
        font-size: 2rem;
    }

    .email-link {
        font-size: 1.2rem;
        margin: 1.5rem 0 2rem;
    }

    .socials {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .minimal-form button {
        width: 100%;
        padding: 1rem 2rem;
    }

    .footer-row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.5rem;
    }

    .intro-text {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .philosophy-content h2 {
        font-size: 1.5rem;
    }

    .contact-text h2 {
        font-size: 1.5rem;
    }

    .stats-minimal {
        flex-direction: column;
        gap: 1.5rem;
    }
}