/* =========================================
   DESIGN SYSTEM & VARIABLES
========================================= */
@font-face {
    font-family: 'Channe';
    src: url('../fonts/Channe.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Angers Script';
    src: url('../fonts/Angers Script.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors */
    --color-bg-dark: #323332;
    --color-text-dark: #323332;
    --color-accent-blue: #4b558c;
    --color-accent-peach: #f2b999;
    --color-text-light: #e8e4db;
    --color-text-muted: rgba(232, 228, 219, 0.7);

    /* Fonts */
    --font-primary: 'Channe', serif;
    --font-secondary: 'Angers Script', cursive;
    --font-text: 'Poppins', sans-serif;

    /* Spacing & Sizes */
    --container-max: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --border-radius: 4px;
}

/* =========================================
   RESET & BASE STYLES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: var(--font-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.font-primary { font-family: var(--font-primary); font-weight: normal; }
.font-script { font-family: var(--font-secondary); font-weight: normal; }
.font-text { font-family: var(--font-text); }

.text-accent-blue { color: var(--color-accent-blue) !important; }
.text-accent-peach { color: var(--color-accent-peach) !important; }
.text-light { color: var(--color-text-light) !important; }
.text-dark { color: var(--color-text-dark) !important; }
.text-light-muted { color: rgba(255, 255, 255, 0.6) !important; }
.text-dark-muted { color: rgba(30, 31, 30, 0.6) !important; }

/* Layout Utilities */
.section { padding: var(--spacing-xl) 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Background Colors */
.bg-dark { background-color: var(--color-bg-dark); }
.bg-light { background-color: var(--color-text-light); }
.bg-blue { background-color: var(--color-accent-blue); }

/* Hero */
.hero { background-color: var(--color-bg-dark); }

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Slide-Up Animation */
.slide-up {
    animation: slideUpFade 0.8s ease forwards;
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-text);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-accent-blue);
    color: var(--color-text-light);
    border: 1px solid var(--color-accent-blue);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-accent-peach);
    color: var(--color-accent-peach);
}

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

.btn-outline:hover {
    background-color: var(--color-accent-peach);
    color: var(--color-bg-dark);
}

/* =========================================
   HEADER
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: rgba(50, 51, 50, 0.98);
    backdrop-filter: blur(10px);
    transition: padding 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}
.logo:hover {
    opacity: 0.8;
}
.logo img {
    height: 35px;
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent-peach);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent-peach);
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--spacing-xl);
}

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

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 3rem;
    color: var(--color-accent-peach);
    margin-bottom: -1.5rem;
    transform: rotate(-3deg);
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    line-height: .9;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-inline: auto;
}

/* Animations */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.3s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   UTILITIES
========================================= */
.section {
    padding: var(--spacing-xl) 0;
}
.bg-light { background-color: var(--color-text-light); }
.bg-blue { background-color: var(--color-accent-blue); }
.text-dark { color: var(--color-bg-dark); }
.text-dark-muted { color: rgba(50, 51, 50, 0.8); }
.text-light-muted { color: rgba(232, 228, 219, 0.8); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

.section-subtitle {
    font-size: 2.5rem;
    margin-bottom: -0.8rem;
    transform: rotate(-3deg);
    display: inline-block;
    position: relative;
    z-index: 2;
}
.section-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}
.section-desc {
    max-width: 700px;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

/* =========================================
   SOBRE SECTION
========================================= */
.sobre-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}
.sobre-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.sobre-image-placeholder {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-color: #dfdbd2;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-box .shape {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: var(--color-accent-peach);
    opacity: 0.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}
.feature-card {
    background-color: #dfdbd2;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.feature-card h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.feature-card p {
    font-size: 1rem;
}

/* =========================================
   ANIMATIONS & REVEAL
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   CASES & PORTFOLIO SECTION
========================================= */
.case-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}
.case-row.reverse {
    direction: rtl;
}
.case-row.reverse > * {
    direction: ltr; /* Reset text direction for content */
}
.case-image {
    width: 100%;
    min-height: 400px;
    border-radius: var(--border-radius);
    background-color: var(--color-bg-dark);
}
.case-image.bg-blue {
    background-color: var(--color-accent-blue);
}
.case-content p {
    margin-bottom: 1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    text-align: left;
}
.portfolio-item {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}
.portfolio-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
.portfolio-item h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.bg-dark {
    background-color: var(--color-bg-dark);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media screen and (max-width: 900px) {
    .sobre-grid, .case-row {
        grid-template-columns: 1fr;
    }
    .case-image {
        min-height: 250px;
    }
}
/* =========================================
   MASONRY GRID (SCREENS)
========================================= */
.masonry-grid {
    column-count: 2;
    column-gap: 1.5rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}
.masonry-grid img {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: block;
    break-inside: avoid;
}
@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* =========================================
   BENTO GRID (MODERN UI)
========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-gap: 1.5rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
}
.bento-item {
    border-radius: 24px;
    background-color: var(--color-bg-dark);
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}
.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.bento-item:hover .bento-hover-scale {
    transform: scale(1.04);
}
.bento-top {
    grid-column: 1 / -1; 
    grid-row: 1; 
    min-height: 380px;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bento-left {
    grid-column: 1;
    grid-row: 2 / 5;
    min-height: 600px;
}
.bento-right-1, .bento-right-2, .bento-right-3 {
    grid-column: 2;
    min-height: 220px;
}
@media (max-width: 900px) {
    .bento-top {
        padding: 3rem 1.5rem 0 1.5rem;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
    }
    /* Transforma o iMac de uma marca d'água torta para um Hero Image lindo */
    .bento-top > img {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        height: auto !important;
        width: 100% !important;
        max-width: 320px;
        opacity: 1 !important;
        margin-top: 3rem !important;
        margin-bottom: -1rem !important;
        order: 2;
    }
    .bento-top > div {
        max-width: 100% !important;
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-top, .bento-left, .bento-right-1, .bento-right-2, .bento-right-3 {
        grid-column: 1;
        grid-row: auto;
        min-height: 250px;
    }
    .bento-left {
        min-height: 550px; /* Área vertical maior pro mockup mobile respirar */
    }
    .bento-left .bento-img {
        object-position: top center;
    }
    /* Centraliza os mini cartões inferiores para elegância no mobile */
    .bento-right-1, .bento-right-2, .bento-right-3 {
        justify-content: center !important;
        text-align: center !important;
    }
    .bento-right-1 > div, .bento-right-2 > div, .bento-right-3 > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================
   ADDITIONS FOR MULTI-PAGE & DROPDOWN
========================================= */

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    padding-bottom: 10px; /* space to hover over */
    margin-bottom: -10px;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-bg-dark);
    list-style: none;
    padding: 1rem;
    min-width: 150px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu li {
    margin-bottom: 0.5rem;
}
.dropdown-menu li:last-child {
    margin-bottom: 0;
}
.dropdown-menu a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    font-family: var(--font-text);
}
.dropdown-menu a:hover {
    color: var(--color-accent-peach);
}

/* Home Grid & Features */
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.num-val { font-size: 4rem; display: block; line-height: 1; margin-bottom: 0.5rem; }
.num-desc { font-weight: 500; font-size: 0.95rem; }
.num-box-text { display: flex; align-items: center; text-align: left; }

.cases-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}
.case-card-mini {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.case-card-mini:hover { transform: translateY(-5px); }
.case-img-mini {
    height: 200px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    background-position: center;
    background-size: cover;
}
.case-cat {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.case-desc {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.frentes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.frente-box {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.02);
    transition: background 0.3s;
}
.frente-box:hover {
    background: rgba(255,255,255,0.05);
}

.cta-box {
    background: rgba(50, 51, 50, 0.5);
    padding: 4rem;
    border-radius: var(--border-radius);
    margin-top: 4rem;
}

/* Button override for dark borders on light bg */
.btn-outline.dark {
    color: var(--color-bg-dark);
    border-color: var(--color-bg-dark);
}
.btn-outline.dark:hover {
    background: var(--color-bg-dark);
    color: var(--color-accent-peach);
}

/* Responsive updates for new elements */
@media screen and (max-width: 900px) {
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-mini-grid { grid-template-columns: 1fr; }
    .frentes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 600px) {
    .numbers-grid { grid-template-columns: 1fr; }
    .frentes-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 2rem; }
}

/* =========================================
   EXPANDABLE GALLERY
======================================== */
.expandable-gallery {
    --gallery-h: 640px;
    display: flex;
    width: 100%;
    height: var(--gallery-h);
    gap: 15px;
    margin-bottom: 4rem;
}
.gallery-panel {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a1a1a 100%);
    border-radius: 12px;
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.gallery-panel.active {
    flex: 0 0 calc(var(--gallery-h) * 9 / 16);
}
@media (hover: hover) {
    .gallery-panel:hover {
        flex: 0 0 calc(var(--gallery-h) * 9 / 16);
    }
}
.bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.6s;
    z-index: 1;
}
.gallery-panel:hover .bg-media,
.gallery-panel.active .bg-media {
    opacity: 0.9;
}
.gallery-panel.is-playing .bg-media {
    opacity: 1;
    z-index: 3; /* Trazer para frente para habilitar os cliques do controle nativo */
}
.media-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
    font-family: var(--font-text);
    z-index: 0;
}
.gallery-panel .panel-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s 0.2s;
    white-space: nowrap;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.gallery-panel:hover .panel-content,
.gallery-panel.active .panel-content {
    opacity: 1;
}
.gallery-panel.is-playing .panel-content {
    opacity: 0 !important; /* Esconder para não sobrepor os controles de reprodução abaixo */
}
.panel-content h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin: 0;
    color: var(--color-accent-peach);
}
@media screen and (max-width: 768px) {
    .expandable-gallery {
        --gallery-h: 460px;
        height: var(--gallery-h);
        gap: 6px;
    }
    .gallery-panel.active {
        flex: 0 1 70%; /* Limita a 70% da tela para não empurrar os outros pra fora */
    }
    .gallery-panel .panel-content {
        left: 10px;
        bottom: 10px;
    }
    .panel-content h3 {
        font-size: 1.1rem;
        white-space: normal; /* Permite quebrar linha caso o título seja grande */
    }
}

/* =========================================
   FLIPBOOK COMPONENT
======================================== */
.flipbooks-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}
.flipbook-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.flipbook-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--color-accent-peach);
    margin-bottom: 1.5rem;
    text-align: center;
}
.flipbook {
    background-color: transparent;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-25%);
}
.flipbook.is-open {
    transform: translateX(0);
}
.flipbook .page {
    background-color: #fff;
    border: solid 1px #dfdbd2;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.flipbook .page-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f8f6;
    color: var(--color-bg-dark);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    padding: 0;
}
.flipbook .page-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.flipbook .page.--left {
    border-right: 0;
    box-shadow: inset -7px 0 30px -7px rgba(0, 0, 0, 0.1), 0 5px 20px rgba(0,0,0,0.08);
}
.flipbook .page.--right {
    border-left: 0;
    box-shadow: inset 7px 0 30px -7px rgba(0, 0, 0, 0.1), 0 5px 20px rgba(0,0,0,0.08);
}
.flip-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.flip-nav button {
    background: transparent;
    border: 1px solid var(--color-accent-peach);
    color: var(--color-accent-peach);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-text);
    transition: all 0.3s;
}
.flip-nav button:hover {
    background: var(--color-accent-peach);
    color: var(--color-bg-dark);
}

/* =========================================
   STICKY SCROLL STACK (PORTFOLIO PAGE)
========================================= */
.sticky-container {
    display: flex;
    position: relative;
    align-items: flex-start;
}
.sticky-left {
    position: sticky;
    top: 120px; /* offset given header */
    width: 50%;
    height: 60vh;
    border-radius: 12px;
    overflow: hidden;
    /* Box shadow is cool but optional */
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.sticky-img-pane {
    position: relative;
    width: 100%;
    height: 100%;
}
.sticky-img {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-size: cover; 
    background-position: center;
    opacity: 0; 
    transition: opacity 0.5s ease;
    border-radius: 12px;
}
.sticky-img.active {
    opacity: 1;
}

.sticky-right {
    width: 50%;
    padding-left: 4rem;
    padding-right: 1rem;
}
.stack-item {
    min-height: 85vh; /* Enough height to trigger scrolling elegantly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* The specific mobile-only image component for the portfolio */
.mobile-stack-img {
    display: none;
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

@media screen and (max-width: 900px) {
    .sticky-container { display: block; }
    .sticky-left { display: none !important; }
    .mobile-stack-img { display: block !important; }
    .sticky-right { width: 100%; padding-left: 0; }
    .stack-item { min-height: auto; margin-bottom: 5rem; }
}

/* =========================================
   SITE CARDS (PORTFOLIO)
========================================= */
.site-card {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 6rem;
    padding: 3rem 2rem 3rem 0;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255,255,255,0.05);
}

.site-card-img {
    flex: 0 0 55%;
    margin-left: -120px;
    z-index: 2;
}

.site-card-img img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
    display: block;
}

.site-card-content {
    flex: 1;
    padding-left: 4rem;
    padding-right: 3rem;
}

@media screen and (max-width: 900px) {
    .site-card {
        flex-direction: column;
        padding: 2.5rem 1.5rem; /* Padding interno mais harmonico pro celular */
        margin-top: 5rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .site-card-img {
        width: 100%;
        margin-left: 0;
        margin-top: -5rem;
        margin-bottom: 1.5rem;
    }
    .site-card-content {
        padding-left: 0; /* Remove a margem fantasma herdada do PC */
        padding-right: 0;
        text-align: center; /* Centraliza tudo embaixo do computador para ficar bonito */
    }
}

/* =========================================
   PHOTO CAROUSEL (PHOTOGRAPHY)
========================================= */
.photo-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 4rem 0;
    position: relative;
    background: var(--color-bg-dark);
}

/* Blur edges for a premium look */
.photo-carousel-container::before,
.photo-carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.photo-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-dark), transparent);
}

.photo-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-dark), transparent);
}

.photo-track {
    display: flex;
    gap: 20px;
    width: fit-content;
    animation: marquee 60s linear infinite;
}

.photo-track:hover {
    animation-play-state: paused;
}

.photo-item {
    width: 500px; /* Horizontal ratio */
    height: 350px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-520px * 8)); } /* width + gap */
}

/* Modifier specifically for the Photography carousel (Vertical Ratio) */
#fotografia .photo-item {
    width: 320px;
    height: 450px;
}
#fotografia .photo-track {
    animation: marquee-foto 40s linear infinite;
}
@keyframes marquee-foto {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-340px * 8)); } /* 320px + 20px gap */
}

/* Modifier specifically for the Materiais Impressos carousel (Square Ratio) */
#materiais .photo-item {
    width: 350px;
    height: 350px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Softer shadow */
}
#materiais .photo-carousel-container::before {
    background: linear-gradient(to right, var(--color-text-light), transparent);
}
#materiais .photo-carousel-container::after {
    background: linear-gradient(to left, var(--color-text-light), transparent);
}
#materiais .photo-track {
    animation: marquee-materiais 40s linear infinite;
}
@keyframes marquee-materiais {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-370px * 8)); } /* 350px + 20px gap */
}

@media screen and (max-width: 900px) {
    .photo-item {
        width: 350px;
        height: 250px;
    }
    @keyframes marquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-370px * 8)); }
    }
    #fotografia .photo-item {
        width: 260px;
        height: 360px;
    }
    @keyframes marquee-foto {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-280px * 8)); } /* 260 + 20 gap */
    }
    #materiais .photo-item {
        width: 260px;
        height: 260px;
    }
    @keyframes marquee-materiais {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-280px * 8)); }
    }
}

/* =========================================
   GLOBAL MOBILE OVERRIDES (ADDED)
========================================= */
@media screen and (max-width: 900px) {
    /* Hamburger Menu Toggle */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 101;
        margin-left: auto; /* Push to right if logo is left */
    }
    .mobile-menu-btn span {
        width: 30px;
        height: 3px;
        background: var(--color-accent-peach);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }
    /* Menu List Background */
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(50, 51, 50, 0.98); /* Mesma cor do header nativo */
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0; /* Removido gap para usar padding e maximizar a área tocável */
        padding: 1rem 2rem 2rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        align-items: flex-start;
    }
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    }
    
    /* Construção de Itens em forma de lista tocável */
    .nav-list > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05); /* Divisor sutil */
    }
    .nav-list > li:last-child {
        border-bottom: none;
        padding-top: 1.5rem; /* Espaço isolando o botão de Contato */
    }
    
    /* Base forte para todos os links */
    .dropdown-menu a, 
    .nav-link {
        display: block !important;
        width: 100% !important;
        padding: 1rem 0 !important;
        font-size: 1.25rem !important; /* Texto bem maior e amigável */
        transform: none !important;
        position: static !important;
        left: auto !important;
        margin: 0 !important;
    }
    
    /* Container do dropdown */
    .nav-dropdown { width: 100%; }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex;
        flex-direction: column;
        gap: 0;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 0 0.5rem 1rem !important; /* Leve indentação dos sub-itens */
        border: none !important;
        margin: 0 !important;
    }
    
    /* Ajustes específicos dos sub-itens de Case */
    .dropdown-menu a {
        font-size: 1.1rem !important;
        padding: 0.75rem 0 !important;
        color: rgba(255,255,255,0.7) !important;
    }
    
    /* O botão principal do menu (Contato) cresce 100% */
    .nav-list .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem !important;
        font-size: 1.1rem;
    }
    
    /* Trava 100% contra animações confusas ou linhas fantasmas no mobile */
    .nav-link::after,
    .nav-link:hover::after {
        display: none !important;
        content: none !important;
    }
    
    .dropdown-menu a:hover, 
    .nav-link:hover {
        transform: none !important;
        margin: 0 !important;
        color: var(--color-accent-peach) !important;
    }

    /* General Spacing & Typography */
    .hero { min-height: auto; padding-top: 8rem; padding-bottom: 4rem; }
    .section { padding: 4rem 0; }
    
    .hero-title { font-size: 3.5rem; line-height: 1; }
    .hero-subtitle { font-size: 2rem; margin-bottom: 0.5rem; }
    .hero-text { font-size: 1.05rem; }
    
    .section-title { font-size: 2.5rem; }
    .section-subtitle { font-size: 1.8rem; }
    
    /* Grids overriden from inline styles */
    .frentes-grid-4 { grid-template-columns: 1fr !important; }
}

@media screen and (max-width: 600px) {
    /* Deeper Typography adjustments */
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.6rem; }
    .section-title { font-size: 2.2rem; }
    .section-subtitle { font-size: 1.5rem; }
    h1[style*="font-size: 4.5rem"] { font-size: 3rem !important; }
    h3[style*="font-size: 3.5rem"] { font-size: 2.2rem !important; }
    
    /* Components */
    .numbers-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .frentes-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 2.5rem 1.5rem; }
    .cta-box h2 { font-size: 2rem !important; }
    .header-inner { padding: 0 1rem; }
    
    .flipbook-title { font-size: 1.5rem; }
    .stack-item { padding: 0 1rem; }
    .stack-item h4 { font-size: 2.5rem !important; }
    
    .logo img { height: 28px; }
}
