﻿/* ============================================================
   BOATCHARTERS.PT â€” Effects Stylesheet
   Estilos para os 7 efeitos avanÃ§ados:
   2. Hero canvas (grain + water fill)
   3. BÃºssola nÃ¡utica pinned
   4. Scroll horizontal â€” diÃ¡rio de bordo
   5. Rota marÃ­tima SVG
   6. Ticker nÃ¡utico
   7. Footer tipogrÃ¡fico
   ============================================================ */

/* â”€â”€ 2. Hero SVG Water Fill â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Container do SVG "BOAT" com preenchimento de Ã¡gua */
#hero-svg-fill {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    /* SubstituirÃ¡ o h1 textual na homepage */
}

/* â”€â”€ 3. BÃºssola NÃ¡utica â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#compass-section {
    background: var(--off-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Grid: bÃºssola ao centro, anotaÃ§Ãµes ao redor */
.compass-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

.compass-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Painel fixo Ã  direita da bÃºssola */
.compass-annotations-panel {
    display: flex;
    align-items: center;
}

/* Container das anotaÃ§Ãµes â€” posiÃ§Ã£o relativa para empilhar as anotaÃ§Ãµes */
.compass-annotations {
    position: relative;
    min-height: 120px;
    width: 100%;
}

/* Cada anotaÃ§Ã£o ocupa a mesma posiÃ§Ã£o â€” sÃ³ uma visÃ­vel de cada vez */
.compass-annotation {
    position: absolute;
    top: 0; left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: opacity 0.5s, transform 0.5s;
}

.annot-cardinal {
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--cyan);
}

.annot-dest {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text);
}

.annot-desc {
    font-size: 0.7rem;
    color: var(--grey);
}

/* Texto decorativo de fundo na secÃ§Ã£o da bÃºssola */
.compass-bg-text {
    position: absolute;
    font-family: var(--font-serif);
    font-size: clamp(6rem, 15vw, 14rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: 0.1em;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

/* â”€â”€ 4. DiÃ¡rio de Bordo (Scroll Horizontal) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#logbook-section {
    background: var(--light-grey);
    overflow: hidden;
    position: relative;
    height: 100vh;          /* Ocupa o ecrÃ£ inteiro quando pinned */
    display: flex;
    align-items: center;
}

/* Track que se move horizontalmente via GSAP */
.logbook-track {
    display: flex;
    align-items: center;
    will-change: transform;
    height: 100%;
    padding: 0;
}

/* Linha decorativa horizontal que se estende ao scroll */
.logbook-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 201, 200, 0.3), transparent);
    transform-origin: left;
    pointer-events: none;
}

/* Cada entrada do log â€” um barco */
.logbook-entry {
    flex: 0 0 auto;
    width: clamp(340px, 33vw, 520px);
    height: 100vh;
    padding: 0 4rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.logbook-entry:first-child {
    padding-left: max(4rem, calc((100vw - 1400px) / 2 + 4rem));
}

.logbook-entry:last-child {
    padding-right: max(4rem, calc((100vw - 1400px) / 2 + 4rem));
    border-right: none;
}

/* Imagem cobre toda a entry ao hover */
.logbook-entry-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.logbook-entry-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logbook-entry:hover .logbook-entry-img {
    opacity: 1;
}

/* Conteúdo fica por cima da imagem ao hover */
.logbook-entry > *:not(.logbook-entry-img) {
    position: relative;
    z-index: 1;
}

/* Overlay escuro sobre a imagem para legibilidade do texto */
.logbook-entry-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.55);
    transition: opacity 0.4s ease;
}

/* Texto a branco ao hover */
.logbook-entry:hover .log-name,
.logbook-entry:hover .log-short,
.logbook-entry:hover .log-spec-value,
.logbook-entry:hover .log-spec-label {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.4s ease;
}

/* CTA dentro de cada entrada */
.log-cta {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--cyan);
    opacity: 0; transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}
.logbook-entry:hover .log-cta { opacity: 1; transform: translateX(0); }

.logbook-entry-cta .log-name { color: var(--cyan); }

/* Nome do barco */
.log-name {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Grid de especificaÃ§Ãµes */
.log-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.log-spec {}

.log-spec-value {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text);
}

.log-spec-label {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey);
}

/* â”€â”€ 5. Rota MarÃ­tima SVG â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#route-section {
    background: var(--white);
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Media de fundo (imagem ou vÃ­deo) */
.route-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.route-media img,
.route-media video {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Overlay escuro sobre o media */
.route-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(13,27,42,0.5) 0%,
        rgba(13,27,42,0.7) 100%
    );
}

.route-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.route-header {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 4rem 2rem 0;
}

/* Quando hÃ¡ media de fundo â€” texto a branco */
#route-section:has(.route-media) .route-header .section-label,
#route-section:has(.route-media) .route-header .section-title,
#route-section:has(.route-media) .route-header .section-lead {
    color: rgba(255,255,255,0.9);
}
#route-section:has(.route-media) .route-header .divider {
    background: rgba(255,255,255,0.4);
}

.route-svg-container {
    width: 100%;
    position: relative;
    overflow: visible;
}

.route-svg-container svg {
    width: 100%;
    height: auto;
    max-height: 35vh;
    display: block;
    overflow: visible;
}

/* â”€â”€ 7. Footer TipogrÃ¡fico â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#footer-typo {
    background: linear-gradient(to right, #00c9c8 0%, #0d1b2a 100%);
    overflow: hidden;
    padding: 1.5rem 0 0;
    position: relative;
}

/* Contacto flutuante por cima do texto */
.footer-typo-contact {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-typo-contact a {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--off-white);
    transition: color 0.3s;
}

.footer-typo-contact a:hover {
    color: var(--cyan);
}

.footer-logo img {
    height: 2.5rem;
    width: auto;
    opacity: 0.85;
}

.typo-letter:hover {
    color: rgba(0, 201, 200, 0.08);
    /* Ligeiro brilho ciano ao hover */
}
/* ── Responsivo dos efeitos ─────────────────────────────────── */

/* ── Tablet (≤ 1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {

    /* Bússola: esconder anotações laterais, layout em coluna */
    .compass-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2rem;
    }

    .compass-annotations-panel {
        justify-content: center;
    }

    /* Logbook: entradas mais estreitas */
    .logbook-entry {
        width: clamp(280px, 70vw, 420px);
        padding: 0 2.5rem;
    }

    /* Rota SVG */
    .route-header {
        padding: 3rem 1.5rem 0;
    }

    /* Footer marquee */
    .footer-marquee {
        padding-top: 60px;
    }

    .typo-letter {
        font-size: clamp(4rem, 9vw, 10rem);
    }

    /* Footer contact */
    .footer-typo-contact {
        padding: 2rem 1.5rem 2.5rem;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

/* ── Mobile (≤ 768px) ───────────────────────────────────────── */
@media (max-width: 768px) {

    /* Bússola — compasso à esquerda, anotações à direita */
    #compass-section {
        min-height: auto;
        padding: 4rem 1.25rem;
    }

    .compass-layout {
        grid-template-columns: 140px 1fr;
        grid-template-rows: auto auto;
        gap: 1rem 1.5rem;
        justify-items: start;
        align-items: center;
    }

    /* Texto do topo — ocupa a linha 1 inteira */
    .compass-layout > div:first-child {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    /* Compasso: coluna esquerda, linha 2 */
    .compass-wrap {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
    }

    /* Anotações: coluna direita, linha 2 — com card de fundo */
    .compass-annotations-panel {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        background: transparent;
        border-radius: 8px;
        padding: 1.25rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
        position: relative;
        isolation: isolate;
    }

    .compass-annotations-panel::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 8px;
        background-color: white;
        opacity: 0.80;
        z-index: -1;
    }

    #compass-svg {
        width: 130px !important;
        height: 130px !important;
    }

    .compass-annotation[data-side=”right”],
    .compass-annotation[data-side=”left”] {
        display: flex;
    }

    .compass-annotations {
        text-align: left;
        min-height: 80px;
    }

    .annot-dest {
        font-size: 1.2rem;
    }

    /* Logbook — scroll horizontal nativo em mobile */
    #logbook-section {
        height: auto;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        display: block;
        padding: 3rem 0 4rem;
    }

    .logbook-track {
        display: flex;
        align-items: stretch;
        padding: 0 1.25rem;
        gap: 0;
        height: auto;
        width: max-content;
    }

    .logbook-entry {
        width: 80vw;
        max-width: 320px;
        height: auto;
        min-height: 340px;
        padding: 2rem 1.5rem;
        justify-content: flex-start;
    }

    .logbook-entry:first-child {
        padding-left: 1.5rem;
    }

    .logbook-entry:last-child {
        padding-right: 1.5rem;
    }

    .logbook-line {
        display: none;
    }

    .logbook-entry-img {
        display: none;
    }

    /* Rota — vertical em mobile, sem pin */
    #route-section {
        height: auto;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .route-inner {
        height: auto;
        justify-content: flex-start;
    }

    .route-header {
        padding: 3rem 1.25rem 0;
        margin-bottom: 2rem;
    }

    .route-svg-container {
        overflow: visible;
        padding: 0 1.25rem;
    }

    /* Ticker */
    #speed-ticker {
        font-size: 0.55rem;
    }

    /* Footer marquee */
    .footer-marquee {
        padding-top: 40px;
    }

    .typo-letter {
        font-size: clamp(2.5rem, 7vw, 5rem);
    }

    /* Footer contact */
    .footer-typo-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem 1.25rem 2.5rem;
    }

    .footer-typo-contact nav {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }

    .footer-logo img {
        height: 2rem;
    }

    /* Footer bottom */
    .footer-typo-bottom {
        padding: 0 1.25rem 2rem;
    }

    /* Page Hero */
    .page-hero-content {
        padding: 0 1.25rem;
    }
}

/* ── Pequeno mobile (≤ 480px) ───────────────────────────────── */
@media (max-width: 480px) {

    #compass-svg {
        width: 200px !important;
        height: 200px !important;
    }

    .logbook-entry {
        width: 85vw;
        max-width: 280px;
    }

    .typo-letter {
        font-size: clamp(2rem, 9vw, 4rem);
    }

    .footer-typo-contact nav {
        gap: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}



