/* 
   REBUILD V3: STRICT ROW LAYOUT
   Base: 1440px Viewport.
   Container: 918px.
   V14: Footer Social Icons.
*/

/* --- TOP NEWS TICKER --- */
.top-news-ticker {
    width: 100vw;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: calc(30 * var(--s));
    display: flex;
    align-items: center;
    position: relative;
    z-index: 9999;
    border-bottom: 1px solid #333;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-top 60s linear infinite;
}

.ticker-track span {
    padding: 0 calc(10 * var(--s));
    font-size: calc(11 * var(--s));
    line-height: calc(30 * var(--s));
    display: inline-block;
}

.separator {
    color: var(--lime);
    margin: 0 calc(5 * var(--s));
}

@keyframes marquee-top {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Typography Mix for Ticker */
.t-serif-i {
    font-family: var(--serif);
    font-style: italic;
}

.t-sans-b {
    font-family: var(--sans);
    font-weight: 700;
    text-transform: uppercase;
}

.t-mono {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.t-serif {
    font-family: var(--serif);
    font-weight: 400;
    text-transform: uppercase;
}

.t-sans {
    font-family: var(--sans);
    font-weight: 400;
    text-transform: uppercase;
}


:root {
    --white: #ffffff;
    --black: #000000;
    --yellow: #ECFD32;
    --lime: #ccff00;
    --pink: #ff99cc;
    --blue: #00ccff;
    --orange: #ff9900;

    --serif: 'Playfair Display', serif;
    --sans: 'Inter', sans-serif;

    /* V11: Aggressive Century Stack */
    --century: 'Century', 'Century Schoolbook', 'Times New Roman', serif;

    /* SCALE FACTOR: 1px = (100vw / 1440) */
    --s: calc(100vw / 1440);
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    font-family: var(--serif);
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a,
button,
.black,
.logo-block,
.cta-text,
.back-to-top,
.back-link,
[onclick] {
    cursor: url('images/decoration/point.svg') 4 2, pointer !important;
}

.decoration {
    cursor: default !important;
}

/* UTILS */
.pink {
    color: var(--pink);
    font-style: italic;
}

.blue {
    color: var(--blue);
    font-style: italic;
}

.orange {
    color: var(--orange);
    font-style: italic;
}

/* --- LAYOUT CONTAINER --- */
.content-container {
    width: calc(918 * var(--s));
    margin: 0 auto;
}

/* --- HEADER --- */
.header-container {
    padding-top: calc(60 * var(--s));
    padding-bottom: calc(40 * var(--s));
    padding-right: calc(261 * var(--s));
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.logo-block {
    position: absolute;
    top: calc(30 * var(--s));
    left: calc(261 * var(--s));
    width: calc(380 * var(--s));
    height: calc(165 * var(--s));
    background: transparent;
    /* Changed from var(--yellow) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-block img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-block img.logo-hover {
    display: none;
}

.logo-block:hover img.logo-default {
    display: none;
}

.logo-block:hover img.logo-hover {
    display: block;
}

.header-container nav {
    font-family: var(--sans);
    font-size: calc(14 * var(--s));
    display: flex;
    gap: calc(40 * var(--s));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.header-container nav a {
    transition: background-color 0.2s ease;
    padding: 0 calc(2 * var(--s));
}

.header-container nav a:hover {
    text-decoration: none;
    color: var(--black);
    background-color: var(--lime);
}

/* --- HERO --- */
.hero {
    text-align: center;
    padding-top: calc(70 * var(--s));
    padding-bottom: calc(85 * var(--s));
}

.hero h1 {
    font-size: calc(65 * var(--s));
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: calc(30 * var(--s));
    cursor: default;
}

.hero-line {
    display: inline-block;
    padding: 0 calc(8 * var(--s));
    transition: background-color 0.45s ease, color 0.45s ease;
}

/* Transições escalonadas na saída */
.hero-line:nth-child(1) {
    transition-delay: 0s;
}
.hero-line:nth-child(3) {
    transition-delay: 0.15s;
}
.hero-line:nth-child(5) {
    transition-delay: 0.3s;
}

/* Quando o mouse passa por cima do h1, cada linha acende suavemente em sequência */
.hero h1:hover .hero-line {
    background-color: #f5ff00; /* Amarelo neon vibrante */
    color: var(--black);
}

.hero h1:hover .hero-line:nth-child(1) {
    transition-delay: 0s;
}
.hero h1:hover .hero-line:nth-child(3) {
    transition-delay: 0.18s;
}
.hero h1:hover .hero-line:nth-child(5) {
    transition-delay: 0.36s;
}

.hero p {
    font-family: var(--sans);
    font-size: calc(13.5 * var(--s));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: #333;
    margin-bottom: calc(40 * var(--s));
}

.scroll-note {
    font-family: var(--sans);
    font-size: calc(10 * var(--s));
    text-transform: uppercase;
    opacity: 0.6;
}


/* --- ROW SYSTEM --- */
.row {
    display: flex;
    justify-content: space-between;
    margin-bottom: calc(31 * var(--s));
    width: 100%;
}

/* BLOCK TYPES */
.block {
    position: relative;
    border-radius: calc(11 * var(--s));
    overflow: hidden;
    transition: transform 0.3s;
}

/* Efeito de escurecer no hover apenas sobre imagens */
.block.has-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.block.has-image:hover::after {
    opacity: 1;
}

.black {
    background: black;
    color: white;
    cursor: pointer;
}

.black:hover {
    transform: scale(1.01);
}

.lime {
    background: var(--lime);
}

/* DECORATIONS: NON-CLICKABLE WITH SUBTLE SHAKE ON HOVER */
.decoration {
    cursor: default !important;
    pointer-events: auto;
}

.decoration:hover {
    animation: decorativeShake 0.4s ease-in-out infinite alternate;
}

@keyframes decorativeShake {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        transform: translate(-1px, 1px) rotate(-0.5deg);
    }
    40% {
        transform: translate(1px, -1px) rotate(0.5deg);
    }
    60% {
        transform: translate(-1px, -0.5px) rotate(-0.3deg);
    }
    80% {
        transform: translate(1px, 0.5px) rotate(0.3deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.decoration.has-image:hover::after {
    opacity: 0 !important;
}

/* SIZES */
.large {
    width: calc(602 * var(--s));
    height: calc(405 * var(--s));
}

.small {
    width: calc(285 * var(--s));
    height: calc(405 * var(--s));
}

.medium {
    width: calc(443 * var(--s));
    height: calc(445 * var(--s));
}

/* TEXT BLOCK */
.text-block {
    display: flex;
    flex-direction: column;
    padding-top: calc(5 * var(--s));
}

.text-block.pad-left {
    padding-left: calc(20 * var(--s));
    justify-content: center;
    padding-top: 0;
}

.label {
    font-family: 'Courier New', monospace;
    font-size: calc(12 * var(--s));
    margin-bottom: calc(10 * var(--s));
    display: block;
}

.title {
    font-family: var(--serif);
    font-size: calc(50 * var(--s));
    font-weight: 400;
    line-height: 1.1;
}

/* INFO OVERLAY */
.info {
    position: absolute;
    bottom: calc(25 * var(--s));
    left: calc(25 * var(--s));
    z-index: 2;
}

.name {
    font-family: var(--serif);
    font-size: calc(24 * var(--s));
    margin-bottom: calc(5 * var(--s));
}

.tags {
    font-family: var(--sans);
    font-size: calc(10 * var(--s));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* --- SEPARATORS --- */
.yellow-bar {
    width: 100vw;
    margin-left: calc((100vw - 918 * var(--s)) / -2);
    /* Changed from 160 to 120 */
    height: calc(120 * var(--s));
    background: #ECFD32;
    margin-bottom: calc(31 * var(--s));
    margin-top: calc(31 * var(--s));
    /* Changed from hidden to visible for image overflow */
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    /* Ensure images float above content */
    z-index: 5;
}

.ticker-scroll {
    display: flex;
    white-space: nowrap;
    height: 100%;
    animation: ticker 80s linear infinite;
}

.ticker-scroll img {
    /* Fixed original height to preserve size */
    height: calc(160 * var(--s));
    width: auto;
    margin-right: 0;
    align-self: center;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- FOOTER INTRO --- */
.footer-intro {
    margin-top: calc(85 * var(--s));
    margin-bottom: calc(85 * var(--s));
}

.footer-intro h2 {
    text-align: center;
    font-size: calc(50 * var(--s));
    font-weight: 400;
    margin-bottom: calc(60 * var(--s));
}

/* --- CTA V9: Explicit Side-by-Side --- */
.cta-row {
    margin-top: calc(100 * var(--s));
    margin-bottom: calc(100 * var(--s));

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: calc(31 * var(--s));
    cursor: pointer;
}

.square-tweak.custom-green {
    width: calc(442 * var(--s));
    height: calc(310 * var(--s));
    flex-shrink: 0;
    flex-grow: 0;
}

.cta-text {
    width: calc(445 * var(--s));
    flex-shrink: 1;
    padding: 0;
}

.cta-text h2 {
    font-size: calc(42 * var(--s));
    font-weight: 400;
    margin-bottom: calc(20 * var(--s));
    margin-top: 0;
    line-height: 1.1;
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0 calc(4 * var(--s));
}

.cta-text p {
    font-family: 'Courier New', monospace;
    font-size: calc(14 * var(--s));
    line-height: 1.5;
    max-width: 100%;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0 calc(4 * var(--s));
}

.cta-text:hover h2 {
    background-color: var(--lime);
    color: var(--black);
}


/* --- SITE FOOTER V12 --- */
.footer {
    background: var(--yellow);
    padding: calc(40 * var(--s)) 0;
}

.footer-inner {
    width: calc(918 * var(--s));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: calc(10 * var(--s));
}

.brand {
    font-size: calc(20 * var(--s));
    font-weight: 600;
    line-height: 1;
}

.copy {
    font-family: 'Courier New', monospace;
    font-size: calc(11 * var(--s));
    text-transform: uppercase;
    text-align: left;
    width: auto;
}

/* Footer Icons V14 */
.icons {
    display: flex;
    gap: calc(5 * var(--s));
    align-items: center;
    /* V14 Align center for icons */
}

/* Generic Icon/Square Sizing */
.social-icon,
.i {
    width: calc(20 * var(--s));
    height: calc(20 * var(--s));
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.2);
}

.social-icon svg,
.social-icon img {
    width: 100%;
    height: 100%;
    fill: currentColor;
    /* Works for inline SVG */
    display: block;
}

/* Specific Colors for Icons */
.social-icon.linkedin {
    color: #006699;
    /* Blueish */
}

.social-icon.instagram {
    color: #ff6699;
    /* Pinkish */
}

.social-icon.behance {
    color: #ff9900;
    /* Orangeish */
}

/* Retain Teal Square */
.i.teal {
    background: #00ccaa;
    display: block;
}


/* V13: Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: calc(40 * var(--s));
    right: calc(40 * var(--s));
    width: calc(50 * var(--s));
    height: calc(50 * var(--s));
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s;
    z-index: 9999;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--orange);
}

.arrow-up {
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    margin-top: calc(5 * var(--s));
}