/* ============================================================
   SYMETRIA — INDEX PREMIUM
   Tipografia da marca (Orkney) + portfólio em mosaico de arte
   ============================================================ */

/* ---------- Fontes da marca ---------- */
@font-face {
    font-family: 'Orkney';
    src: url('../fonts/orkney/Orkney-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Orkney';
    src: url('../fonts/orkney/Orkney-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Orkney';
    src: url('../fonts/orkney/Orkney-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Orkney';
    src: url('../fonts/orkney/Orkney-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

main h1,
main h2,
main h5,
.titulo-principal,
.navbar-nav .nav-link {
    font-family: 'Orkney', 'Poppins', sans-serif;
}
.titulo-principal {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #061B25;
}

/* ---------- Cabeçalho da seção portfólio ---------- */
.portfolio-head {
    max-width: 760px;
    margin: 0 auto 34px;
}
.portfolio-eyebrow {
    display: block;
    font-family: 'Orkney', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #9E1A16;
    margin-bottom: 10px;
}
.portfolio-sub {
    color: #6b7480;
    font-size: 15.5px;
    line-height: 1.7;
    margin: 12px 0 26px;
}
.portfolio-filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.portfolio-filtros button {
    font-family: 'Orkney', 'Poppins', sans-serif;
    font-size: 13px;
    letter-spacing: 0.8px;
    color: #34415D;
    background: transparent;
    border: 1px solid #d5d9de;
    border-radius: 999px;
    padding: 8px 22px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.portfolio-filtros button:hover {
    border-color: #9E1A16;
    color: #9E1A16;
}
.portfolio-filtros button.ativo {
    background: #061B25;
    border-color: #061B25;
    color: #fff;
}

/* ---------- Mosaico de arte ---------- */
.mosaico-obras {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 8px;
    grid-template-areas:
        "toscana toscana sauzen  petra"
        "toscana toscana sauzen  petra"
        "vieira  martini moraes  ferron"
        "vieira  bender  bender  scherer";
}
.mo-toscana { grid-area: toscana; }
.mo-martini { grid-area: martini; }
.mo-sauzen  { grid-area: sauzen; }
.mo-ferron  { grid-area: ferron; }
.mo-bender  { grid-area: bender; }
.mo-moraes  { grid-area: moraes; }
.mo-petra   { grid-area: petra; }
.mo-vieira  { grid-area: vieira; }
.mo-scherer { grid-area: scherer; }

/* Ao filtrar, o patchwork vira grade uniforme (o encaixe se refaz) */
.mosaico-obras.filtrado {
    grid-template-areas: none;
    grid-auto-rows: 290px;
}
.mosaico-obras.filtrado .mo-tile {
    grid-area: auto;
}
.mo-tile.oculto { display: none; }

/* ---------- Tile ---------- */
.mo-tile {
    position: relative;
    overflow: hidden;
    background: #0c1a24;
}
.mo-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.mo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mo-tile:hover img {
    transform: scale(1.045);
}
/* Véu de leitura permanente + reforço no hover */
.mo-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(6, 27, 37, 0) 46%,
        rgba(6, 27, 37, 0.38) 74%,
        rgba(6, 27, 37, 0.82) 100%);
    transition: opacity 0.4s ease;
}
.mo-tile:hover .mo-link::after {
    opacity: 0.92;
}

.mo-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px 16px;
    z-index: 2;
    transform: translateY(2px);
    transition: transform 0.4s ease;
}
.mo-tile:hover .mo-info {
    transform: translateY(-3px);
}
.mo-status {
    display: block;
    font-family: 'Orkney', sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 5px;
}
.mo-status .mo-dot {
    color: #E44B26;
}
.mo-info h3 {
    font-family: 'Orkney', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 3px;
}
.mo-hero .mo-info h3 {
    font-size: 30px;
}
.mo-local {
    font-family: 'Orkney', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.68);
}
.mo-seta {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: #fff;
    font-size: 17px;
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: all 0.4s ease;
    z-index: 2;
}
.mo-tile:hover .mo-seta {
    opacity: 1;
    transform: translate(0, 0);
}

/* Botão "ver foto inteira" */
.mo-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(6, 27, 37, 0.55);
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}
.mo-tile:hover .mo-zoom {
    opacity: 1;
}
.mo-zoom:hover {
    background: #9E1A16;
}

/* ---------- Responsivo ---------- */
@media (min-width: 1400px) {
    .mosaico-obras { grid-auto-rows: 272px; }
}
@media (max-width: 991px) {
    .mosaico-obras {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        grid-template-areas:
            "toscana toscana"
            "toscana toscana"
            "sauzen  petra"
            "sauzen  petra"
            "vieira  martini"
            "vieira  moraes"
            "bender  bender"
            "ferron  scherer";
    }
    .mo-hero .mo-info h3 { font-size: 24px; }
    .mo-zoom { opacity: 1; } /* touch: sempre visível */
}
@media (max-width: 600px) {
    .mosaico-obras {
        grid-auto-rows: 150px;
        gap: 6px;
    }
    .mo-info { padding: 12px 14px 11px; }
    .mo-info h3 { font-size: 16.5px; }
    .mo-hero .mo-info h3 { font-size: 20px; }
    .mo-status { font-size: 9px; letter-spacing: 2px; }
    .mo-local { font-size: 10.5px; }
    .portfolio-filtros button { padding: 7px 16px; font-size: 12px; }
}
