/*!
Theme Name: BLNK Theme
Author: Patrick Gracietti
Author URI: https://blnkwork.com
Description: Custom starter theme for BLNK Creative Works.
Version: 1.1
Text Domain: blnk-theme
*/

/* ===========================
   ROOT + RESET
   =========================== */

:root {
    --blnk-bg: #050505;
    --blnk-red: #ff1a1a;
    --blnk-text: #f5f5f5;
    --blnk-muted: #b3b3b3;
}

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

html, body {
    height: 100%;
}

body {
    background: radial-gradient(circle at top left, #141414 0, #050505 55%);
    color: var(--blnk-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.4;
}

/* remove output padrão do WP */
.site, .site-header, .site-footer, .site-main { width: 100%; }


/* ===========================
   TOPBAR + MENU
   =========================== */

.blnk-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 32px;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(6px);
    z-index: 100;
}

.blnk-topbar__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--blnk-muted);
    position: relative; /* IMPORTANTE */
}


.blnk-topbar__brand {
    display: flex;
    gap: 10px;
    align-items: center;
}

.blnk-topbar__logo {
    font-weight: 700;
    color: var(--blnk-red);
}

/* hamburger */

.blnk-topbar__menu {
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.blnk-topbar__menu span {
    height: 2px;
    width: 100%;
    background: #fff;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

/* estado aberto = X */
.blnk-topbar__menu.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.blnk-topbar__menu.is-open span:nth-child(2) {
    opacity: 0;
}

.blnk-topbar__menu.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* painel do menu */

.blnk-topbar__panel {
    position: absolute;
    top: 36px;
    right: 0;
    min-width: 230px;
    max-width: calc(100vw - 64px); /* nunca passa da tela */
    padding: 16px 18px;
    background: #080808;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 40px rgba(0,0,0,0.9);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.blnk-topbar__panel.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}




.blnk-topbar__panel-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blnk-muted);
    margin-bottom: 10px;
}

.blnk-topbar__lang-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.blnk-lang__btn--small {
    flex: 1;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.16em;
    padding: 6px 10px;
    white-space: nowrap;
}



/* ===========================
   LANGUAGE GATE
   =========================== */

.blnk-lang-gate {
    padding: 120px 32px 40px;
    text-align: center;
    background: #050505;
    transition: opacity 0.3s ease;
    z-index: 50;
}

.blnk-lang-gate__inner {
    max-width: 600px;
    margin: 0 auto;
}

.blnk-lang-gate .blnk-lang__buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

/* botões de idioma */

.blnk-lang__label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--blnk-muted);
    margin-bottom: 14px;
}

.blnk-lang__buttons {
    display: inline-flex;
    gap: 8px;
}

.blnk-lang__btn {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(5,5,5,0.9);
    color: var(--blnk-muted);
    padding: 8px 16px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.18em;
    cursor: pointer;
    transition: 0.15s ease;
}

.blnk-lang__btn.is-active,
.blnk-lang__btn:hover {
    border-color: var(--blnk-red);
    color: var(--blnk-text);
}


/* ===========================
   HERO
   =========================== */

#blnk-root {
    min-height: 100vh;
}

.blnk-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background:
        radial-gradient(circle at 10% 0, rgba(255, 26, 26, 0.12) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(255, 26, 26, 0.08) 0, transparent 55%),
        var(--blnk-bg);
    position: relative;
    overflow: hidden;
}

.blnk-hero::before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: linear-gradient(
        115deg, rgba(255,255,255,0.03) 0,
        transparent 40%,
        rgba(255,255,255,0.02) 55%,
        transparent 100%
    );
    mix-blend-mode: soft-light;
}

.blnk-hero__inner {
    position: relative;
    max-width: 960px;
    width: 100%;
    padding: 32px 32px 40px;
    background: linear-gradient(135deg, rgba(5,5,5,0.85), rgba(12,12,18,0.95));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}

.blnk-tagline {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--blnk-muted);
    margin-bottom: 20px;
}

.blnk-logo {
    font-size: clamp(32px, 6vw, 54px);
    letter-spacing: 0.18em;
    font-weight: 700;
    text-transform: uppercase;
}

.blnk-logo::after {
    content: " // studio";
    color: var(--blnk-red);
}

.blnk-hero__text {
    margin-top: 20px;
    max-width: 520px;
    font-size: 15px;
    color: var(--blnk-muted);
}


/* ===========================
   HUB
   =========================== */

.blnk-hub {
    padding: 80px 32px;
    display: none;
}

.blnk-hub__inner {
    max-width: 1120px;
    margin: 0 auto;
}

.blnk-hub__title {
    font-size: 18px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.blnk-hub__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.blnk-hub-card {
    padding: 22px;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    transition: 0.18s ease;
}

.blnk-hub-card:hover {
    border-color: var(--blnk-red);
    transform: translateY(-3px);
    box-shadow: 0 26px 60px rgba(0,0,0,0.9);
}

.blnk-hub-card__label {
    display: block;
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.blnk-hub-card__text {
    font-size: 14px;
    color: var(--blnk-muted);
}


/* ===========================
   RESPONSIVO
   =========================== */

@media (max-width: 900px) {
    .blnk-hub__grid {
        grid-template-columns: 1fr;
    }

    .blnk-section {
        padding: 56px 20px;
    }

    .blnk-lang__buttons {
        width: 100%;
    }

    .blnk-lang__btn {
        flex: 1;
        text-align: center;
    }
}
