/* --- Reset & Base Variables --- */
:root {
    --black: #111111;
    --white: #ffffff;
    --red: #e30613;
    --font-primary: 'Outfit', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-condensed: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Container & General Utilities --- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

section {
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
    position: relative;
}

.section-white {
    background-color: var(--white);
    color: var(--black);
}

.section-black {
    background-color: var(--black);
    color: var(--white);
}

/* --- Red Triangle Badge --- */
.red-triangle-badge {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 18px 18px 0 0;
    border-color: var(--red) transparent transparent transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.section-title-huge {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 3.5rem;
}

p {
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

strong {
    font-weight: 700;
}

/* --- Header Section --- */
body {
    padding-top: 240px; /* Offset for fixed header */
}

.site-header {
    background-color: var(--white);
    padding: 2.5rem 0;
    border-bottom: 2px solid var(--black);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-logo-img {
    width: 250px;
    height: auto;
    display: block;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-trigger-btn {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled Header Effect */
.site-header.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .logo-wrapper {
    justify-content: flex-start;
}

.site-header.scrolled .site-logo-img {
    width: 120px;
}

.site-header.scrolled .menu-trigger-btn {
    position: static;
    transform: none;
}

/* Brutalist Menu Trigger Button */
.menu-trigger-btn {
    background: none;
    border: none;
    color: var(--black);
    padding: 0.5rem 0.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-trigger-btn:hover {
    color: var(--red);
}

/* --- Apresentação Section --- */
.section-presentation {
    border-bottom: 2px solid var(--black);
}

.presentation-bio {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 4rem;
}

.bio-photo-wrapper {
    flex-shrink: 0;
}

.bio-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.bio-text p {
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    line-height: 1.45;
}

.bio-text a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.bio-text a:hover {
    text-decoration: underline;
}

.video-container {
    width: 100%;
    border: 4px solid var(--black);
    background-color: var(--black);
    line-height: 0;
}

.main-video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Manifesto Section --- */
.section-manifesto {
    padding-bottom: 16vw; /* Spacing for diagonal background cut */
}

.manifesto-list {
    list-style: none;
    max-width: 850px;
}

.manifesto-list li {
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    margin-bottom: 1.5rem;
    line-height: 1.45;
}

.manifesto-list li.manifesto-highlight {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--red);
    margin: 2rem 0;
}

.manifesto-list li.manifesto-em {
    font-weight: 700;
    color: var(--black);
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    margin: 2rem 0 1rem 0;
}

.manifesto-list li.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2.5rem 0;
    font-family: var(--font-condensed);
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
}

.manifesto-list li.manifesto-grid span {
    border-left: 3px solid var(--red);
    padding-left: 0.75rem;
}

.manifesto-list li.manifesto-footer-text {
    font-weight: 500;
    color: var(--black);
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    margin-top: 2.5rem;
}

/* Diagonal Background Cut Transition (Manifesto -> What Is) */
.diagonal-transition-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16vw;
    background-color: var(--black);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 1;
}

/* --- What Is & Why KV Sections --- */
.section-what-is {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.section-why {
    padding-top: 2rem;
    padding-bottom: clamp(6rem, 10vw, 9rem);
}

.text-block {
    max-width: 850px;
}

.section-black .text-block p {
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* --- Serrated/Zigzag Dividers --- */
.zigzag-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background-size: 40px 24px;
    background-repeat: repeat-x;
    z-index: 10;
}

/* White teeth pointing up into Black background */
.divider-black-white {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 40 24" xmlns="http://www.w3.org/2000/svg"><polygon points="0,24 20,0 40,24" fill="%23ffffff"/></svg>');
}

/* Black teeth pointing up into White background */
.divider-white-black {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 40 24" xmlns="http://www.w3.org/2000/svg"><polygon points="0,24 20,0 40,24" fill="%23111111"/></svg>');
}

/* --- Para Quem Fazemos Section --- */
.section-for-whom {
    padding-top: clamp(5rem, 8vw, 8rem);
    padding-bottom: 4rem;
}

.section-for-whom .text-block p {
    font-size: clamp(1.1rem, 1.35vw, 1.25rem);
    line-height: 1.45;
    margin-bottom: 1.75rem;
}

/* --- Quem Somos Section --- */
.section-about-us {
    padding-top: 2rem;
    padding-bottom: 16vw; /* Space for diagonal slash */
}

.intro-bold {
    font-family: var(--font-condensed);
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.section-about-us .text-block p {
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    line-height: 1.45;
}

/* Diagonal Slash transition (Light to Dark) */
.diagonal-transition-bg-light-to-dark {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16vw;
    background-color: var(--black);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 1;
}

/* --- Elementos do KV Section --- */
.section-elements {
    padding-top: 2rem;
    padding-bottom: clamp(6rem, 10vw, 9rem);
}

.elements-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin-top: 3rem;
}

.element-item {
    border-left: 4px solid var(--red);
    padding-left: 1.5rem;
}

.element-heading {
    font-family: var(--font-condensed);
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.element-text {
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    line-height: 1.4;
    color: #cccccc;
    margin-bottom: 0;
}

/* --- Oferecemos Section --- */
.section-offers {
    padding-top: clamp(6rem, 9vw, 9rem);
    padding-bottom: 4rem;
}

.offers-solutions {
    margin-top: 4rem;
    max-width: 850px;
}

.solutions-title {
    font-family: var(--font-condensed);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--black);
    padding-bottom: 0.5rem;
}

.solutions-list {
    list-style: none;
}

.solutions-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.solution-name {
    font-family: var(--font-condensed);
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
}

.solution-details {
    font-size: clamp(1.05rem, 1.25vw, 1.2rem);
    line-height: 1.4;
    color: var(--black);
    margin-top: 0.25rem;
}

/* --- FAQ Section --- */
.section-faq {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.faq-list {
    max-width: 850px;
    margin-top: 2.5rem;
}

.faq-item {
    border-bottom: 2px solid #e0e0e0;
    padding: 1.5rem 0;
}

.faq-question {
    font-family: var(--font-condensed);
    font-size: clamp(1.2rem, 1.6vw, 1.45rem);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::after {
    content: "+";
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 400;
    transition: transform 0.25s ease;
}

.faq-item.active {
    border-bottom: 2px solid var(--black);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--red);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 1.25rem;
}

.faq-answer p {
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    line-height: 1.45;
    margin-bottom: 0;
    color: #444444;
}

/* --- Talentos Section --- */
.section-talents {
    padding-top: 2rem;
    padding-bottom: clamp(6rem, 10vw, 9rem);
}

.talents-content {
    max-width: 850px;
    margin-top: 2.5rem;
}

.talents-intro {
    font-size: clamp(1.1rem, 1.3vw, 1.25rem);
    line-height: 1.45;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.talents-content .talent-item {
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--red);
    padding-left: 1.5rem;
}

.talent-name {
    font-family: var(--font-condensed);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.talent-role {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.45;
    color: #444444;
    margin-bottom: 0;
}

/* --- Portfolio Section --- */
.section-portfolio {
    padding-top: clamp(5rem, 8vw, 8rem);
    padding-bottom: clamp(6rem, 10vw, 9rem);
}

.portfolio-subtitle {
    font-family: var(--font-condensed);
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--red);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

.portfolio-layout {
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-main-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 4px solid var(--white);
    background-color: #1a1a1a;
    overflow: hidden;
    line-height: 0;
}

.portfolio-main-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.portfolio-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.thumb-item {
    aspect-ratio: 16 / 9;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.2s;
    line-height: 0;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.thumb-item.active {
    border-color: var(--red);
}

/* --- Orçamento Section --- */
.section-budget {
    padding-top: clamp(5rem, 8vw, 8rem);
    padding-bottom: 2rem;
}

.budget-text {
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    font-weight: 500;
}

/* --- Contato Section --- */
.section-contact {
    padding-top: 1rem;
    padding-bottom: 16vw; /* Spacing for diagonal footer cut */
}

.contact-details {
    margin-top: 2rem;
    display: flex;
    gap: 4rem;
}

.contact-phones, .contact-email {
    font-size: 1.1rem;
    line-height: 1.4;
}

.contact-phones strong, .contact-email strong {
    font-size: 1.4rem;
    font-family: var(--font-condensed);
    font-weight: 800;
}

.contact-email a {
    color: var(--black);
    text-decoration: none;
}

.contact-email a:hover {
    color: var(--red);
    text-decoration: underline;
}

.brutalist-banners {
    margin-top: 6rem;
}

.banner-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 3.5rem;
}

.banner-text.line-1 {
    color: var(--black);
}

.banner-text.line-2 {
    color: var(--black);
    margin-bottom: 0;
}

.highlight-red {
    color: var(--red);
}

/* Diagonal cutoff for Footer */
.diagonal-transition-bg-light-to-dark-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16vw;
    background-color: var(--black);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 1;
}

/* --- Footer Section --- */
.site-footer {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

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

.footer-logo-img {
    width: 130px;
    height: auto;
    display: block;
}

/* --- Responsive Adjustments --- */


@media (max-width: 768px) {
    .presentation-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .manifesto-list li.manifesto-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }
    
    .elements-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 2rem;
    }
    
    .menu-trigger-btn {
        font-size: 0.95rem;
        padding: 0.4rem 1rem;
    }
    
    body {
        padding-top: 180px;
    }

    .site-logo-img {
        width: 180px;
    }

    .site-header.scrolled .site-logo-img {
        width: 90px;
    }
}

@media (max-width: 480px) {
    .manifesto-list li.manifesto-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-thumbnails {
        gap: 6px;
    }
    
    .thumb-item {
        border-width: 1px;
    }
}

/* --- Menu Side Drawer --- */
.menu-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background-color: var(--white);
    color: var(--black);
    border-left: 4px solid var(--black);
    z-index: 9995;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
}

.menu-drawer.active {
    transform: translateX(0);
}

.menu-drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--black);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.menu-drawer-close:hover {
    color: var(--red);
}

.menu-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    overflow-y: auto;
}

.menu-drawer-link {
    font-family: var(--font-condensed);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.menu-drawer-link:hover {
    color: var(--red);
    padding-left: 6px;
}

