@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Montserrat:wght@200;300;400;500&display=swap');

:root {
    --bg-natural: #FDFBF7;
    --primary-linho: #DDCBB0;
    --text-nogueira: #4A3525;
    --accent-cta: #4A3525;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Golden Ratio Scale (1.618) */
    --h1: clamp(3rem, 8vw, 6.5rem);
    --h2: clamp(2.5rem, 5vw, 4.2rem);
    --h3: clamp(1.8rem, 3vw, 2.6rem);
    --p-large: 1.25rem;
    --p-base: 1rem;
    --p-small: 0.85rem;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
}

p {
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 120px 0;
}

/* Nav */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-header.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(74, 53, 37, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--bg-natural);
    transition: color 0.4s ease;
}

.nav-header.scrolled .logo,
.nav-header.scrolled .nav-links a {
    color: var(--text-nogueira);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--bg-natural);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-linho) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-cta);
    color: var(--bg-natural);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-primary:hover::after {
    transform: translateX(0);
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(74, 53, 37, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-nogueira);
    border: 1px solid var(--text-nogueira);
}

.btn-outline:hover {
    background-color: var(--text-nogueira);
    color: var(--bg-natural);
}

/* --- Hero Immersive --- */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../assets/img/hero_architecture.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
    transform: scale(1.05);
    animation: slowZoom 20s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 10, 7, 0.7) 0%, rgba(15, 10, 7, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-natural);
    max-width: 900px;
    padding: 0 2rem;
    margin-top: 10vh;
}

.hero h1 {
    font-size: var(--h1);
    margin-bottom: 1.5rem;
    animation: fadeUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero p.sub-headline {
    font-size: var(--p-large);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-inline: auto;
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s forwards;
}

.hero .btn-primary {
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.6s forwards;
    background-color: var(--bg-natural);
    color: var(--accent-cta);
}

.hero .btn-primary:hover {
    background-color: var(--primary-linho);
}

/* --- Metodologia (Process Zig-Zag) --- */
.process {
    background-color: var(--bg-natural);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: var(--h2);
    color: var(--text-nogueira);
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-number {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 15rem;
    color: var(--text-nogueira);
    line-height: 0.8;
    text-align: right;
    position: relative;
    z-index: 0;
}

.process-step:nth-child(even) .process-number {
    text-align: left;
}

.process-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.process-content h3 {
    font-size: var(--h3);
    margin-bottom: 1.5rem;
}

.process-content p {
    font-size: var(--p-large);
    opacity: 0.8;
}

/* --- Depoimentos (Minimalist Carousel) --- */
.social-proof {
    background-color: var(--primary-linho);
    text-align: center;
    padding: 150px 0;
}

.social-proof h2 {
    margin-bottom: 5rem;
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: rgba(74, 53, 37, 0.15);
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
}

.testimonial-card {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.stars {
    color: var(--text-nogueira);
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
}

.testimonial-card p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 3rem;
}

.client-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Carousel Additions */
.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-card {
    flex: 0 0 100%;
    width: 100%;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.carousel-controls button {
    background: transparent;
    border: 1px solid var(--text-nogueira);
    color: var(--text-nogueira);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-controls button:hover {
    background: var(--text-nogueira);
    color: var(--bg-natural);
}

/* --- Sobre (Editorial Style) --- */
.about {
    background-color: var(--bg-natural);
    padding: 160px 0;
    position: relative;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 0;
    align-items: center;
}

.about-image {
    position: relative;
    z-index: 2;
}

.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: sepia(0.3) contrast(1.1);
}

.about-content {
    background-color: #F5F2EA;
    padding: 6rem 5rem 6rem 8rem;
    margin-left: -5rem;
    position: relative;
    z-index: 1;
}

.about-content h2 {
    font-size: var(--h2);
    margin-bottom: 2.5rem;
}

.about-content p {
    font-size: var(--p-large);
    margin-bottom: 2rem;
    opacity: 0.85;
}

/* --- Diferenciais (Minimal Grid) --- */
.diferenciais {
    padding: 120px 0;
    background-color: var(--bg-natural);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

.diferenciais-card {
    border-top: 1px solid rgba(74, 53, 37, 0.2);
    padding-top: 2rem;
}

.diferenciais-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-linho);
}

.diferenciais-card h3 {
    font-size: var(--h3);
    margin-bottom: 1rem;
}

.diferenciais-card p {
    font-size: var(--p-base);
    opacity: 0.8;
}

/* --- Portfolio --- */
.portfolio {
    background-color: var(--text-nogueira);
    color: var(--bg-natural);
    padding: 120px 0;
}

.portfolio h2 {
    color: var(--bg-natural);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 4rem;
}

.portfolio-item {
    cursor: pointer;
}

.portfolio-image-wrapper {
    overflow: hidden;
    aspect-ratio: 4/5;
    margin-bottom: 1.5rem;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.portfolio-info h3 {
    font-size: 1.6rem;
    color: var(--primary-linho);
    margin-bottom: 0.5rem;
}

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

/* --- FAQ --- */
.faq {
    background-color: var(--bg-natural);
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(74, 53, 37, 0.2);
    padding: 2rem 0;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-nogueira);
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-weight: 300;
    transition: transform 0.4s ease;
}

.faq-answer {
    display: grid; 
    grid-template-rows: 0fr; 
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s; 
    opacity: 0; 
}

.faq-answer-inner {
    min-height: 0;
    font-size: 1.1rem;
    opacity: 0.8;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr; 
    opacity: 1; 
    margin-top: 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--text-nogueira);
    color: var(--primary-linho);
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid rgba(221, 203, 176, 0.2);
}

.site-footer h3 {
    color: var(--bg-natural);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8rem; }
.mt-4 { margin-top: 4rem; }
.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.2s !important; }

.bg-pattern {
    position: relative;
}
.bg-pattern::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: 600px;
    background-repeat: repeat;
    mix-blend-mode: multiply;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}
.bg-pattern-dark::before {
    mix-blend-mode: color-dodge;
    opacity: 0.03;
}
.bg-pattern > .container {
    position: relative;
    z-index: 1;
}

.pattern-process::before { background-image: url('../assets/img/pattern_process.png'); }
.pattern-about::before { background-image: url('../assets/img/pattern_about.png'); }
.pattern-diferenciais::before { background-image: url('../assets/img/pattern_diferenciais.png'); }
.pattern-faq::before { background-image: url('../assets/img/pattern_faq.png'); }
.pattern-portfolio::before { background-image: url('../assets/img/pattern_portfolio.png'); }

/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slowZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.reveal-element {
    opacity: 0;
    will-change: opacity, transform;
}

/* Responsive */
@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    .about-content {
        margin-left: 0;
        margin-top: -4rem;
        padding: 6rem 2rem 3rem 2rem;
    }
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }
    .process-step {
        flex-direction: column !important;
        text-align: center;
        gap: 1rem;
    }
    .process-number {
        font-size: 8rem;
        text-align: center !important;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3.5rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .testimonial-card p { font-size: 1.5rem; }
    section { padding: 80px 0; }
}
