/* ── Brand Card ───────────────────────────────────────── */
.brand-card {
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.brand-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    transform: translateY(-3px);
}

/* Thumbnail wrapper — aspect ratio fixo */
.brand-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f4f5;
}

.brand-card__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.brand-card:hover .brand-card__media {
    transform: scale(1.04);
}

/* Placeholder com inicial */
.brand-card__placeholder span {
    font-size: 5rem;
    font-weight: 800;
    color: #d4d4d8;
}

/* Badge de contagem */
.brand-card__badge {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 3px 9px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

/* Texto */
.brand-card__body {
    padding: 1rem 1.1rem 1.2rem;
}

.brand-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #111;
    margin: 0 0 .35rem;
}

.brand-card__desc {
    font-size: .85rem;
    color: #71717a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =============================================================
   Marcas / Studio — Style sheet
   Swiss editorial + technical admin grid
============================================================= */

:root {
    --black: #09090B;
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --red: #ef4444;
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    background: #fff;
    color: var(--black);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--black); color: #fff; }

.font-display { font-family: 'Cabinet Grotesk', 'Outfit', sans-serif; letter-spacing: -0.02em; }

.brand-mark {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 1.25rem;
    color: var(--black);
}

.micro-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--zinc-500);
    font-weight: 500;
}

/* ---------- HEADER (public) ---------- */
.public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.nav-link-mini {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--zinc-500);
    text-decoration: none;
    transition: color .2s;
}
.nav-link-mini:hover { color: var(--black); }

.btn-mini {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid rgba(0,0,0,0.2);
    padding: .4rem .7rem;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    background: transparent;
    border-radius: 0;
    transition: all .2s;
}
.btn-mini:hover { border-color: var(--black); }

.btn-black {
    background: var(--black);
    color: #fff;
    padding: .65rem 1.1rem;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    border: 1px solid var(--black);
    transition: background .2s;
    display: inline-block;
}
.btn-black:hover { background: var(--zinc-700); color: #fff; }

.btn-outline-black {
    background: transparent;
    color: var(--black);
    padding: .65rem 1.1rem;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    border: 1px solid var(--black);
    transition: all .2s;
    display: inline-block;
}
.btn-outline-black:hover { background: var(--black); color: #fff; }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 5rem 0 6rem;
}
.hero-bg {
    position: absolute; inset: 0;
    opacity: .07;
    background-size: cover;
    background-position: center;
}
.hero h1 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: .95;
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    max-width: 60rem;
    margin: 0;
}
.hero .hero-sub {
    max-width: 36rem;
    margin-top: 2rem;
    font-size: 1.05rem;
    color: var(--zinc-600);
    line-height: 1.6;
}

/* ---------- Marquee ---------- */
.marquee {
    border-top: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
}
.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    padding: 1rem 0;
}
.marquee-track span {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.75rem;
    padding: 0 2rem;
    color: var(--zinc-200);
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Bento grid ---------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}
@media (max-width: 767px) {
    .bento-grid { grid-template-columns: 1fr; }
}
.bento-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    text-decoration: none;
    background: var(--zinc-100);
    min-height: 320px;
    transition: border-color .3s;
}
.bento-tile:hover { border-color: var(--black); }
.bento-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.22,1,.36,1);
}
.bento-tile:hover .bento-img { transform: scale(1.04); }
.bento-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 60%);
}
.bento-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.5rem 1.75rem;
    color: #fff;
}
.bento-content h3 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.05;
    margin: .4rem 0 0;
}
.bento-badge {
    position: absolute;
    top: .75rem; right: .75rem;
    background: rgba(255,255,255,0.92);
    color: var(--black);
    padding: .25rem .5rem;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

/* Span variants */
.span-7-r2 { grid-column: span 7; grid-row: span 2; min-height: 640px; }
.span-5    { grid-column: span 5; min-height: 310px; }
.span-4    { grid-column: span 4; min-height: 420px; }
.span-8    { grid-column: span 8; min-height: 420px; }
.span-6    { grid-column: span 6; min-height: 380px; }
@media (max-width: 767px) {
    .span-7-r2, .span-5, .span-4, .span-8, .span-6 { grid-column: 1 / -1; min-height: 360px; }
}

/* ---------- Brand detail page ---------- */
.detail-section { padding: 4rem 0; }
.detail-hero h1 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: .95;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}
.detail-text {
    font-size: 1.1rem;
    color: var(--zinc-700);
    line-height: 1.7;
    white-space: pre-wrap;
}
.media-frame {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}
.media-frame video,
.media-frame img { width: 100%; height: 100%; object-fit: contain; background: #000; }

.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.photo-card {
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    overflow: hidden;
}
.photo-card .photo-img {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--zinc-100);
}
.photo-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.22,1,.36,1);
}
.photo-card:hover img { transform: scale(1.04); }
.photo-caption {
    padding: .65rem .85rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--zinc-600);
}

.video-tile {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
}
.video-tile video { width: 100%; height: 100%; object-fit: cover; opacity: .85; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(0,0,0,0.08); margin-top: 3rem; }

/* ---------- ADMIN ---------- */
.admin-header {
    border-bottom: 1px solid var(--black);
    background: #fff;
}
.admin-header-grid {
    grid-template-columns: 1fr 2fr 1fr;
}
@media (max-width: 767px) {
    .admin-header-grid { grid-template-columns: 1fr auto; }
    .admin-header-mid { display: none !important; }
}
.admin-logo {
    padding: 1rem 1.25rem;
    border-right: 1px solid var(--black);
    display: flex;
    align-items: center;
    text-decoration: none;
}
.admin-header-mid {
    padding: 0 1.25rem;
    border-right: 1px solid var(--black);
}
.admin-header-right { display: flex; }
.admin-header-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-left: 1px solid var(--black);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    transition: background .15s;
}
.admin-header-btn:hover { background: var(--zinc-100); color: var(--black); }

.admin-subbar {
    border-bottom: 1px solid rgba(0,0,0,0.15);
    background: var(--zinc-50);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(0,0,0,0.3);
    background: #fff;
}
.tech-table thead th {
    background: var(--zinc-50);
    border-bottom: 1px solid rgba(0,0,0,0.3);
    border-right: 1px solid rgba(0,0,0,0.15);
    text-align: left;
    padding: .75rem 1rem;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--zinc-600);
    font-weight: 600;
}
.tech-table thead th:last-child { border-right: none; text-align: right; }
.tech-table tbody td {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-right: 1px solid rgba(0,0,0,0.1);
    padding: .9rem 1rem;
    vertical-align: middle;
    font-size: .9rem;
}
.tech-table tbody td:last-child { border-right: none; text-align: right; }
.tech-table tbody tr:last-child td { border-bottom: none; }
.tech-table tbody tr:hover { background: var(--zinc-50); }

.tech-input, .tech-textarea, .tech-select {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.25);
    background: #fff;
    padding: .65rem .8rem;
    font-size: .9rem;
    font-family: 'Outfit', sans-serif;
    border-radius: 0;
    outline: none;
    transition: border-color .15s;
}
.tech-input:focus, .tech-textarea:focus, .tech-select:focus { border-color: var(--black); }
.tech-textarea { resize: vertical; min-height: 110px; }

.tech-field-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    align-items: start;
}
.tech-field-row:last-child { border-bottom: none; }
.tech-field-row > label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--zinc-600);
    font-weight: 500;
    padding-top: .55rem;
}
@media (max-width: 767px) {
    .tech-field-row { grid-template-columns: 1fr; }
    .tech-field-row > label { padding-top: 0; }
}

.tech-section {
    border: 1px solid rgba(0,0,0,0.3);
    margin-bottom: 2.5rem;
    background: #fff;
}
.tech-section-header {
    background: var(--zinc-50);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding: .75rem 1.25rem;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--zinc-600);
    font-weight: 500;
}
.tech-section-body { padding: 0 1.25rem; }

.admin-thumb {
    width: 40px; height: 40px;
    border: 1px solid rgba(0,0,0,0.15);
    overflow: hidden;
    background: var(--zinc-100);
    display: inline-block;
    margin-right: .75rem;
    vertical-align: middle;
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }

.btn-icon {
    background: transparent;
    border: 1px solid transparent;
    padding: .35rem .55rem;
    cursor: pointer;
    color: var(--black);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-icon:hover { background: var(--zinc-100); }
.btn-icon-danger { color: var(--red); }
.btn-icon-danger:hover { background: #fef2f2; }

.danger-link {
    color: var(--red);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.danger-link:hover { text-decoration: underline; }

.admin-grid-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.admin-photo-card { position: relative; border: 1px solid rgba(0,0,0,0.15); background: #fff; }
.admin-photo-card .img { aspect-ratio: 4/5; overflow: hidden; background: var(--zinc-100); }
.admin-photo-card img { width: 100%; height: 100%; object-fit: cover; }
.admin-photo-card .cap { padding: .35rem .6rem; border-top: 1px solid rgba(0,0,0,0.1); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--zinc-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-photo-card .remove-btn {
    position: absolute; top: 6px; right: 6px;
    background: #fff;
    border: 1px solid var(--black);
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: .9rem;
    line-height: 1;
}
.admin-photo-card .remove-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

.admin-grid-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.admin-video-card { position: relative; border: 1px solid rgba(0,0,0,0.15); background: #000; aspect-ratio: 16/9; overflow: hidden; }
.admin-video-card video { width: 100%; height: 100%; object-fit: contain; }
.admin-video-card .remove-btn {
    position: absolute; top: 6px; right: 6px;
    background: #fff;
    border: 1px solid var(--black);
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: .9rem; line-height: 1;
}
.admin-video-card .remove-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

.add-card { border: 1px solid rgba(0,0,0,0.3); padding: 1rem; background: #fff; }

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 991px) { .login-wrap { grid-template-columns: 1fr; } }
.login-visual {
    background-size: cover; background-position: center;
    position: relative;
    border-right: 1px solid rgba(0,0,0,0.1);
}
.login-visual::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.login-visual .login-visual-content { position: relative; z-index: 1; padding: 3rem; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 991px) { .login-visual { display: none; } }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-form { width: 100%; max-width: 360px; }
.login-form h1 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800; letter-spacing: -0.03em;
    font-size: 2.2rem; margin: 0 0 2rem;
}
.error-box {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    padding: .65rem .85rem;
    font-size: .85rem;
    margin-bottom: 1rem;
}

/* Bootstrap overrides */
.alert { border-radius: 0 !important; border: 1px solid; }
.alert-success { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.alert-danger  { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
