/* ==========================================================================
   STUDIO LUCCA – Presentation Deck Style (Swiper.js)
   Horizontal scrolling, full-screen slides, premium UX.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@200;300;400;500;600;700&display=swap');

:root {
    --color-bg: #ffffff;
    --color-text-main: #111111;
    --color-text-muted: #555555;
    --color-text-light: #999999;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html, body {
    position: relative;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow: hidden; /* Swiper handles all scrolling */
}

img { max-width: 100%; height: auto; display: block }
a { color: inherit; text-decoration: none }

/* ═══════════════════════════════════════════════════════════════════════
   SWIPER BASE
   ═══════════════════════════════════════════════════════════════════════ */

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100vw;
    height: 100vh;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align grid to the top for consistent vertical start */
    padding: 8.5rem 6rem 5rem; /* Position grid consistently under header */
    position: relative;
    box-sizing: border-box;
}

/* Swiper Controls & Navigation */
.swiper-controls {
    position: absolute;
    bottom: 3.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    z-index: 10;
    line-height: 1;
    transition: opacity 0.4s ease; /* Smooth transition for cover slide fade-out */
}

.swiper-controls .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 80px !important; /* Fixed width for the progress line */
    height: 1px !important; /* Very thin line */
    background: rgba(0, 0, 0, 0.15) !important; /* Background track */
    overflow: hidden;
    display: inline-block;
}

.swiper-controls .swiper-pagination .swiper-pagination-progressbar-fill {
    background: var(--color-text-main) !important; /* Progress fill color */
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform-origin: left top;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    background: none;
    border: none;
    padding: 6px;
    margin: 0;
    cursor: pointer;
    color: var(--color-text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    color: var(--color-text-main);
}

.swiper-button-prev-custom.swiper-button-disabled,
.swiper-button-next-custom.swiper-button-disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* ── Header ────────────────────────────────────────────────────────── */
.slide__header {
    position: absolute;
    top: 3rem; left: 6rem; right: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: .75rem; font-weight: 400;
    letter-spacing: .1em;
    color: var(--color-text-light);
    text-transform: uppercase;
    z-index: 10;
}
.slide__header-logo {
    display: inline-flex; align-items: center;
    text-transform: lowercase;
    font-weight: 300;
    color: var(--color-text-muted);
}
.logo-slash {
    display: inline-block;
    width: 9px; height: 6px;
    background: currentColor;
    transform: skewX(-25deg);
    margin: 0 4px;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.slide__footer {
    position: absolute;
    bottom: 3.25rem; left: 6rem; right: 6rem;
    height: 32px; /* Matches the height of swiper-controls for perfect vertical alignment */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: .75rem; font-weight: 400;
    letter-spacing: .1em;
    color: var(--color-text-light);
    line-height: 1;
    z-index: 10;
}
.slide__footer-shape { width: 44px; height: auto }

/* ── Grid ──────────────────────────────────────────────────────────── */
.slide__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 6rem;
    align-items: flex-start; /* Align text and image columns at the top */
    width: 100%; max-width: 1300px;
    margin: 0 auto; /* Horizontal center, no vertical margin auto */
}

.slide__content {
    display: flex; flex-direction: column; justify-content: flex-start;
}

/* ═══════════════════════════════════════════════════════════════════════
   TEXT STYLES
   ═══════════════════════════════════════════════════════════════════════ */

.slide__title {
    font-family: var(--font-heading);
    font-size: 2.25rem; font-weight: 300;
    letter-spacing: -.01em;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.slide__desc {
    font-size: .95rem; line-height: 1.75;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 2rem;
    text-align: justify; /* Alinhamento completo (justificado) */
}
.slide__link-container { margin-top: .5rem }
.slide__link {
    display: inline-flex; align-items: center;
    font-family: var(--font-heading);
    font-size: .75rem; font-weight: 500;
    letter-spacing: .08em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    transition: color .3s;
}
.slide__link::before {
    content: "■"; margin-right: .5rem;
    color: var(--color-text-light); font-size: .7rem;
    transition: color .3s;
}
.slide__link:hover,
.slide__link:hover::before { color: var(--color-text-main) }

/* ── Image ─────────────────────────────────────────────────────────── */
.slide__image-wrapper {
    position: relative; width: 100%;
    display: flex; align-items: flex-start; justify-content: center;
}
.slide__image {
    max-height: 65vh; max-width: 100%;
    width: auto; height: auto;
    object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════════════════
   SPECIAL SLIDES
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Cover ─────────────────────────────────────────────────────────── */
.slide--cover {
    background: #000 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100vh !important;
}
.slide--cover .slide__logo-vector {
    transform: translateY(-15vh); /* Shift logo up to center it in the sky portion of the background image */
}
.slide--cover .slide__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center bottom;
    opacity: .95; z-index: 1;
}
.slide--cover .slide__overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, rgba(0,0,0,.15) 100%);
    z-index: 2;
}

.slide__logo-vector {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 300; color: #fff;
    letter-spacing: .05em;
    z-index: 3; position: relative;
    user-select: none;
}
.slide__logo-vector-slash {
    display: inline-block;
    width: clamp(20px, 4vw, 32px);
    height: clamp(12px, 2.5vw, 20px);
    background: #fff;
    transform: skewX(-25deg);
    margin: 0 .4em;
}

/* Minimalist Scroll Indicator (Cover Page only) */
.scroll-indicator {
    position: absolute;
    bottom: 3.25rem; /* Matches footer/controls bottom alignment */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
    animation: pulse 2.5s infinite ease-in-out;
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 1.25px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    position: relative;
}

.mouse-icon .wheel {
    width: 2px;
    height: 6px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.8s ease-out infinite;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

@keyframes scroll-wheel {
    0% {
        top: 6px;
        opacity: 1;
    }
    80%, 100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.95;
    }
}

/* Mobile Swipe Indicator (Hidden by default on desktop) */
.swipe-indicator {
    display: none;
    position: absolute;
    bottom: 3.25rem;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    z-index: 3;
    animation: pulse 2.5s infinite ease-in-out;
}

.swipe-arrows {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
    font-weight: 300;
    animation: swipe-horizontal 2s infinite ease-in-out;
}

.swipe-text {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

@keyframes swipe-horizontal {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* ── Intro (Slide 2) ───────────────────────────────────────────────── */
.slide__intro-left {
    display: flex; flex-direction: column;
    justify-content: flex-start;
}

.slide-2-quote {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 300;
    line-height: 1.55; color: #b5b5b5;
    text-align: right;
    display: inline-block;
    align-self: flex-end; /* Align the quote block to the right of the column */
    width: auto;
    max-width: 460px;
    margin: 0 1rem 3rem 0; /* Add 1rem right margin to align exactly with the text below */
    letter-spacing: .06em;
}
.slide-2-quote-line {
    position: relative;
    display: inline-block;
}
.quote-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    color: #c8c8c8;
    font-size: 2.5rem; line-height: 1;
    position: absolute;
    white-space: nowrap;
}
.quote-mark--open  { top: -0.5rem; left: -1.75rem; }
.quote-mark--close { bottom: -1.75rem; right: -1.75rem; }

.slide--intro .slide__text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    padding-right: 1rem;
    text-align: justify; /* Alinhamento completo (justificado) */
}
.slide--intro .slide__text p { margin-bottom: 1.25rem }
.slide--intro .slide__text p strong { font-weight: 500; color: var(--color-text-main) }

/* ── Contact ───────────────────────────────────────────────────────── */
.slide--contact {
    background: #000; padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; 
    justify-content: center !important;
}
.slide--contact .slide__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    opacity: .9; z-index: 1;
}
.slide--contact .slide__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.25); z-index: 2;
}
.slide--contact .slide__content-wrapper {
    position: relative; z-index: 3;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 100%; padding: 2rem; text-align: center;
    margin-top: -5vh; /* Push slightly up to balance the visual weight of the chair */
}
.slide--contact .slide__logo-vector { margin-bottom: 2rem }
.slide--contact .slide__contact-info {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 3rem;
    font-family: var(--font-heading);
    font-size: .85rem; font-weight: 400;
    letter-spacing: .15em; color: #fff;
    text-transform: uppercase;
}
.slide--contact .slide__contact-link {
    color: #fff; opacity: .85; transition: opacity .3s;
}
.slide--contact .slide__contact-link:hover {
    opacity: 1; text-decoration: underline; text-underline-offset: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════
   VISUAL CLEANUP & ALIGNMENT OVERRIDES
   ═══════════════════════════════════════════════════════════════════════ */

/* Specific styling for Slide 25 footer (dark background) */
#slide-25 .slide__footer {
    color: rgba(255, 255, 255, 0.4);
    bottom: 3.25rem; /* Align with all other slides */
}
#slide-25 .slide__footer-shape {
    filter: invert(1) opacity(0.8);
}

/* Align text and image base-to-base on Slide 2 for desktop */
@media (min-width: 769px) {
    #slide-2 .slide__grid {
        align-items: stretch;
    }
    #slide-2 .slide__intro-left {
        justify-content: space-between;
    }
    #slide-2 .slide__text {
        margin-bottom: 0;
    }
    #slide-2 .slide__text p:last-child {
        margin-bottom: 0;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE (Mobile Focus)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .swiper-slide { padding: 5rem 3rem }
    .slide__header { left: 3rem; right: 3rem; top: 2rem; }
    .slide__footer { left: 3rem; right: 3rem; bottom: 2rem; }
    .swiper-controls { bottom: 2rem; }
    .slide__grid { gap: 4rem; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Hide mouse icon and show swipe indicator on Cover */
    .scroll-indicator { display: none !important; }
    .swipe-indicator { display: flex; }

    .swiper-slide {
        padding: 1.5rem 1.5rem 6.5rem; /* Header mais pra cima, muito espaço embaixo para proteção das setas */
    }

    .slide__header {
        position: relative; top: 0; left: 0; right: 0;
        margin-bottom: 2.5rem; font-size: .65rem; /* Mais espaçamento entre header e conteúdo */
    }
    
    /* Default Grid for Slides 3-24 */
    .slide__grid {
        display: flex; flex-direction: column;
        gap: 1.5rem; width: 100%;
        height: 100%;
        justify-content: space-between; /* Empurra o texto pro topo e a foto pro fundo */
    }
    
    /* Scrollable content container */
    .slide__content { 
        order: 1; 
        flex: 0 1 auto; /* NUNCA estica */
        overflow-y: auto; 
        padding-right: 0.5rem; /* Space for scrollbar */
    }
    
    .slide__image-side { 
        order: 2; width: 100%; display: flex; justify-content: center; 
        margin-bottom: 0;
    }
    
    /* Premium Full-Width Banners for Slides 3-24 */
    .slide__image { 
        width: 100%;
        height: 25vh; 
        max-height: 25vh; 
        object-fit: cover; 
        border-radius: 6px; /* Premium touch */
        margin-top: 0;
    } 

    .slide__title { font-size: 1.5rem; margin-bottom: 0.75rem }
    .slide__desc { font-size: .9rem; line-height: 1.6; margin-bottom: 1rem; text-align: justify; text-align-last: left; }

    /* Layout Específico: Slide 2 (60% Texto / 38% Imagem) */
    #slide-2 .slide__grid {
        display: grid;
        grid-template-columns: 60% 38%; /* Increased image width by ~15% */
        gap: 2%;
        align-items: stretch;
        height: 100%; /* Respeita perfeitamente o padding superior e inferior do slide */
        /* Removido align-content: center para garantir alinhamento no topo com as outras páginas */
    }
    #slide-2 .slide__intro-left {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
        padding-right: 0.5rem;
    }
    
    /* Esconder a citação no mobile por falta de espaço */
    #slide-2 .slide-2-quote,
    #slide-2 .quote-mark {
        display: none !important;
    }

    #slide-2 .slide__text {
        font-size: 0.85rem;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    #slide-2 .slide__image-side {
        width: 100%;
        height: 100%;
        margin-bottom: 0;
    }
    #slide-2 .slide__image-wrapper {
        height: 100%;
    }
    #slide-2 .slide__image {
        height: 100%;
        max-height: none;
        width: 100%;
        object-fit: cover;
        border-radius: 6px;
        margin-top: 0;
    }

    /* Hide footer on mobile to gain space */
    .slide__footer {
        display: none !important;
    }

    .slide--cover,
    .slide--contact { padding: 0 }
    .slide--cover .slide__logo-vector,
    .slide--contact .slide__logo-vector { font-size: 1.6rem }
    .slide--contact .slide__logo-vector { margin-bottom: 2.5rem }
    .slide--contact .slide__contact-info {
        flex-direction: column; gap: 1.25rem; font-size: .75rem;
    }
    .swiper-controls {
        bottom: 0.5rem; /* Desceu as setas para não pegar na imagem */
    }

    /* Custom image positioning per slide on mobile */
    #slide-3 .slide__image {
        object-position: center 15%;
    }
    #slide-6 .slide__image {
        object-position: center 30%;
    }
    #slide-7 .slide__image {
        object-position: center 30%;
    }
    #slide-8 .slide__image {
        object-position: center 10%;
    }
}
