/*
Theme Name: StrongCode
Description: Tema customizado StrongCode
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Mono:wght@300;400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #0A0A0A;
    --orange: #FF5C1A;
    --red: #CC1A00;
    --white: #F0F0F0;
    --white-dim: rgba(240,240,240,0.5);
    --mono: 'DM Mono', monospace;
    --title: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--title);
    overflow-x: hidden;
    cursor: none;
}

#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* ===== NOISE ===== */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: noiseAnim 0.5s steps(2) infinite;
}

@keyframes noiseAnim {
    0%   { transform: translate(0,0); }
    25%  { transform: translate(-2px,2px); }
    50%  { transform: translate(2px,-2px); }
    75%  { transform: translate(-1px,-1px); }
    100% { transform: translate(1px,1px); }
}

/* ===== CURSOR ===== */
#sc-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    position: absolute;
    width: 8px; height: 8px;
    background: var(--orange);
    border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s, background 0.3s;
}

.cursor-ring {
    position: absolute;
    width: 40px; height: 40px;
    border: 1.5px solid rgba(255,92,26,0.7);
    border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: width 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
                height 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
                border-color 0.3s, background 0.3s;
}

.cursor-text {
    position: absolute;
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--orange);
    transform: translate(-50%,-50%);
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s, color 0.3s;
}

body.cursor-hover .cursor-dot { width: 0; height: 0; opacity: 0; }
body.cursor-hover .cursor-ring { width: 70px; height: 70px; border-color: rgba(255,92,26,0.5); }
body.cursor-hover .cursor-text { opacity: 1; }

body.cursor-project .cursor-dot { width: 0; height: 0; opacity: 0; }
body.cursor-project .cursor-ring { width: 90px; height: 90px; border-color: var(--orange); background: rgba(255,92,26,0.08); }
body.cursor-project .cursor-text { opacity: 1; font-size: 0.65rem; }

body.cursor-on-light .cursor-dot { background: rgba(0,0,0,0.8); }
body.cursor-on-light .cursor-ring { border-color: rgba(0,0,0,0.45); }
body.cursor-on-light .cursor-text { color: rgba(0,0,0,0.8); }

/* ===== NAV ===== */
#sc-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4vw;
    transition: background 0.4s, backdrop-filter 0.4s;
}

.nav-logo img {
    height: 44px;
    filter: brightness(10);
    opacity: 0;
    transform: translateY(-10px);
}

.nav-links { display: flex; gap: 2.5rem; }

.nav-links a {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--white);
    text-decoration: none;
    opacity: 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--black);
    background: var(--white);
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    opacity: 0;
    transition: background 0.3s, color 0.3s;
}

.nav-cta:hover { background: var(--orange); color: var(--black); }

/* ===== HERO ===== */
#hero {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 140px 6vw 6vw;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,92,26,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,92,26,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    color: var(--orange);
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

.tag-item, .tag-sep { display: inline-block; }

.hero-title {
    font-size: clamp(4.5rem, 12vw, 14rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.title-line {
    overflow: hidden;
    display: block;
    padding-top: 0.12em;
}

.title-line span {
    display: block;
    transform: translateY(110%);
    padding-top: 0.05em;
}

.title-line.accent span { color: var(--orange); }

.hero-bottom {
    display: flex;
    align-items: center;
    gap: 5rem;
    position: relative;
    z-index: 2;
}

.hero-desc {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.8;
    color: var(--white-dim);
    font-weight: 300;
    max-width: 260px;
    opacity: 0;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--orange);
    color: var(--black);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    padding: 1.1rem 2.2rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.76,0,0.24,1);
}

.cta-btn:hover::before { transform: translateX(0); }
.cta-btn .cta-inner, .cta-btn svg { position: relative; z-index: 1; }

.cta-btn svg {
    width: 16px; height: 16px;
    stroke: var(--black);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s;
}

.cta-btn:hover svg { transform: translateX(4px); }

.hero-counters {
    position: absolute;
    bottom: 3.5rem;
    right: 6vw;
    display: flex;
    gap: 3.5rem;
    z-index: 2;
}

.counter-item { text-align: right; opacity: 0; }

.counter-num {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.counter-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.scroll-hint {
    position: absolute;
    bottom: 3.5rem;
    left: 4vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    opacity: 0;
}

.scroll-hint span {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.3);
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

.scroll-line-left {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--orange), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(0.6); }
}

/* ===== SECTION LABEL ===== */
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.section-label span:first-child { color: var(--orange); }

.contato-label { color: rgba(0,0,0,0.5); }
.contato-label span:first-child { color: rgba(0,0,0,0.7); }

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: clamp(3rem, 7vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.section-title em { font-style: normal; color: var(--orange); }

/* ===== SERVIÇOS ===== */
#servicos { padding: 10rem 6vw; }

.services-header { margin-bottom: 5rem; }

.services-list { border-top: 1px solid rgba(255,255,255,0.07); }

.service-item {
    display: grid;
    grid-template-columns: 60px 1fr auto 40px;
    align-items: center;
    gap: 2rem;
    padding: 2.2rem 0;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    cursor: none;
    overflow: hidden;
    transition: padding-left 0.4s cubic-bezier(0.76,0,0.24,1);
}

.service-item:hover { padding-left: 1rem; }

.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,92,26,0.04);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.76,0,0.24,1);
}

.service-item:hover::before { transform: scaleX(1); }

.service-number {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--orange);
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

.service-info {
    position: relative;
    z-index: 1;
}

.service-info h3 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 0.4rem;
    transition: color 0.3s;
    color: var(--white);
}

.service-item:hover .service-info h3 { color: var(--orange); }

.service-info p {
    font-size: 0.85rem;
    color: var(--white-dim);
    font-weight: 300;
    max-width: 380px;
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.service-tags span {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.3rem 0.7rem;
    transition: border-color 0.3s, color 0.3s;
    background: none;
}

.service-item:hover .service-tags span {
    border-color: rgba(255,92,26,0.3);
    color: rgba(255,92,26,0.7);
}

.service-arrow {
    font-size: 1.4rem;
    color: var(--white); /* Seta branca por padrão */
    position: relative;
    z-index: 1;
    transition: color 0.3s, transform 0.3s;
    font-style: normal;
    font-family: var(--title); /* Garante que a fonte do ícone não seja afetada */
    line-height: 1;
    display: flex; /* Para alinhar o ícone */
    align-items: center;
    justify-content: center;
}

.service-item:hover .service-arrow {
    color: var(--orange); /* Seta laranja no hover */
    transform: translateX(4px) translateY(-4px);
}

/* ===== MANIFESTO ===== */
#manifesto {
    padding: 10rem 6vw;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.manifesto-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
}

.manifesto-stats {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
}

.mstat-num {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}

.mstat-num span {
    color: var(--orange);
    font-size: 0.6em;
}

.mstat-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    margin-top: 0.4rem;
}

.manifesto-text {
    font-size: clamp(1.6rem, 3vw, 3rem);
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255,255,255,0.12);
}

.m-word {
    display: inline-block;
    transition: color 0.3s ease;
}

.m-word.active { color: var(--white); }

/* ===== TRABALHOS ===== */
#trabalhos {
    padding: 10rem 6vw;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.works-header { margin-bottom: 5rem; }

.works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 1.5rem;
}

.work-item {
    cursor: none;
    display: block;
}

.work-full {
    grid-column: 1 / -1;
}

.work-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.work-full .work-thumb {
    aspect-ratio: 21/9;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.work-placeholder span {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.15);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.4);
    transition: background 0.4s;
}

.work-item:hover .work-overlay { background: rgba(10,10,10,0.1); }
.work-item:hover .work-placeholder { transform: scale(1.04); }

.work-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.2rem 0 0;
}

.work-info h3 {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--white);
}

.work-info p {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
}

.work-tags { display: flex; gap: 0.5rem; flex-shrink: 0; margin-top: 0.3rem; }

.work-tags span {
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.25rem 0.6rem;
    background: none;
}

/* ===== DEPOIMENTOS ===== */
#depoimentos {
    padding: 10rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

#depoimentos .section-label { padding: 0 6vw; }

.testimonials-track-wrapper {
    overflow: hidden;
    position: relative;
}

.testimonials-track-wrapper::before,
.testimonials-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

.testimonials-track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--black), transparent);
}

.testimonials-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--black), transparent);
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding: 1rem 0;
}

.testimonial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 2.5rem;
    width: 400px;
    flex-shrink: 0;
}

.test-quote {
    font-size: 4rem;
    color: var(--orange);
    line-height: 0.5;
    margin-bottom: 1.5rem;
    font-family: serif;
}

.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    font-weight: 300;
    margin-bottom: 2rem;
}

.test-author { display: flex; align-items: center; gap: 1rem; }

.test-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,92,26,0.2);
    border: 1px solid rgba(255,92,26,0.3);
    flex-shrink: 0;
}

.test-author strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: var(--white);
}

.test-author span {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
}

/* ===== CTA FINAL ===== */
#contato {
    position: relative;
    padding: 12rem 6vw;
    background: var(--orange);
    overflow: hidden;
}

.cta-noise {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
    animation: noiseAnim 0.5s steps(2) infinite;
}

.cta-bg-text {
    position: absolute;
    font-size: clamp(8rem, 18vw, 22rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: rgba(0,0,0,0.07);
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    font-family: var(--title);
}

.cta-final-inner {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(3rem, 8vw, 10rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--black);
    margin: 2rem 0 3rem;
}

.cta-title em {
    font-style: normal;
    -webkit-text-stroke: 2px var(--black);
    color: transparent;
}

.cta-desc {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: rgba(0,0,0,0.6);
    font-weight: 300;
    line-height: 1.7;
    max-width: 400px;
    margin-bottom: 3.5rem;
}

.cta-final-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    padding: 1.3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: color 0.4s;
}

.cta-final-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.76,0,0.24,1);
}

.cta-final-btn:hover::before { transform: translateX(0); }
.cta-final-btn:hover { color: var(--black); }
.cta-final-btn span, .cta-final-btn svg { position: relative; z-index: 1; }

.cta-final-btn svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s;
}

.cta-final-btn:hover svg { transform: translateX(4px); }

/* ===== FOOTER ===== */
#footer {
    padding: 5rem 6vw 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    gap: 4rem;
}

.footer-logo {
    height: 44px;
    filter: brightness(10);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    display: block;
}

.footer-left p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
    font-weight: 300;
    line-height: 1.6;
}

.footer-links { display: flex; gap: 5rem; }

.footer-col { display: flex; flex-direction: column; gap: 0.8rem; }

.footer-col-title {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.2);
}

/* ===== MAGNETIC ===== */
.magnetic { display: inline-flex; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    body { cursor: auto; }
    #sc-cursor { display: none; }
    .manifesto-inner { grid-template-columns: 1fr; gap: 3rem; }
    .works-grid { grid-template-columns: 1fr; }
    .work-full { grid-column: span 1; }
    .footer-inner { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 2rem; }
    .nav-links { display: none; }
    .hero-counters { position: relative; bottom: unset; right: unset; margin-top: 4rem; justify-content: flex-start; gap: 2.5rem; }
    .counter-item { text-align: left; }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 2rem; }
}